• Hi, I’m experiencing this issue: when I update manually a license from backend, and then perform an slm_check within my plugin, the result is unexpected.
    This is my code:

    $api_params = array(
    ‘registered_domain’ => $_SERVER[‘SERVER_NAME’],
    ‘slm_action’ => ‘slm_check’,
    ‘secret_key’ => MY_SECRET_KEY,
    ‘license_key’ => $options[‘activationKey’]
    );

    $query = esc_url_raw(add_query_arg($api_params, MY_SERVER_URL));
    var_dump($query);
    $response = wp_remote_get($query, array(‘timeout’ => 20, ‘sslverify’ => false));
    var_dump($response);

    If I paste the url from the query in my browser, the result is ok, but the response is different, it’s the result before my manual changes.
    The odd thing is that if I change the order of the params in $api_params the response is ok, but only until next change. It seems like a sort of cache problem o something similar. Can you help please?

    • This topic was modified 3 years, 9 months ago by stefyonweb.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘API response incorrect’ is closed to new replies.