Closed kallewangstedt closed 6 years ago
@kallewangstedt
The data is sending with application/json
content type here. So you need to use in your php script:
$data = file_get_contents('php://input');
for getting post variables instead $_POST
.
Have fun and working scripts :-)
system info
Expected behavior
When using the
store.utils.ajax()
method for server side verification of subscription a JS object with the subscription receipt and signature are sent via thedata
object in the ajax request.Observed behavior
The
data
object is not sent via POST. Therefore the server never receives the data for processing, and cannot verify the subscription.Steps to reproduce
If the server in the example above just returns the
$_REQUEST['subscription']
the logged data object is null.