我正在使用react-native-iap订阅应用商店。我正在尝试验证收据,并收到错误210002。我从react native提取函数发送收据数据,并在php后端中像这样处理它...
$postdata = file_get_contents("php://input");
$request = json_decode($postdata);
然后在我的函数中获取收据,我这样做...
$curl = curl_init($service_url);
$curl_post_data = array(
'receipt-data' => $request->receipt,
'password' => $password
);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($curl_post_data));
$curl_response = curl_exec($curl);
...
我尝试将$request->receipt
包装在json_encode()
中。
我查看了我认为关于此问题的每个Stack Overflow答案,但似乎无法正确解决。
当我打印要从中获取的收据时,就是这个...
[29-Oct-2019 00:45:29 UTC] stdClass Object
(
[transactionReceipt] => MIIkawYJKoZIhvcNAQcCoIIkXDCCJFgCAQExCzAJBgUrDgMCGgUAMIIUDAYJKoZIhvcNAQcBoIIT/QSCE/kxghP1MAoCAQgCAQEEAhYAMAoCARQCAQEEAgwAMAsCAQECAQEEAwIBADALAgEDAgEBBAMMATEwCwIBCwIBAQQDAgEAMAsCAQ4CAQEEAwIBazALAgEPAgEBBAMCAQAwCwIBEAIBAQQDAgEAMAsCARkCAQEEAwIBAzAMAgEKAgEBBAQWAjQrMA0CAQ0CAQEEBQIDAdZSMA0CARMCAQEEBQwDMS4wMA4CAQkCAQEEBgIEUDI1MzAYAgEEAgECBBCup500UVvJYZWzY2zsH+MVMBoCAQICAQEEEgwQY29tLmhzYm4uaHNibkFwcDAbAgEAAgEBBBMMEVByb2R1Y3Rpb25TYW5kYm94MBwCAQUCAQEEFKSeCSjWM9ZtacED4HcUBP9bbLSFMB4CAQwCAQEEFhYUMjAxOS0xMC0yOVQwMDo0NToyOFowHgIBEgIBAQQWFhQyMDEzLTA4LTAxVDA3OjAwOjAwWjBLAgEHAgEBBEPqtUKdG+a7AJNbPTzF6VWAOAMb+uJ63zcSx6AIUdLEw+3yDs/yNX5hgtk895627VeEMmd4rv3HssHHSWIJ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W5kIGNlcnRpZmljYXRpb24gcHJhY3RpY2Ugc3RhdGVtZW50cy4wDQYJKoZIhvcNAQEFBQADggEBAFw2mUwteLftjJvc83eb8nbSdzBPwR+Fg4UbmT1HN/Kpm0COLNSxkBLYvvRzm+7SZA/LeU802KI++Xj/a8gH7H05g4tTINM4xLG/mk8Ka/8r/FmnBQl8F0BWER5007eLIztHo9VvJOLr0bdw3w9F4SfK8W147ee1Fxeo3H4iNcol1dkP1mvUoiQjEfehrI9zgWDGG1sJL5Ky+ERI8GA4nhX1PSZnIIozavcNgs/e66Mv+VNqW2TAYzN39zoHLFbr2g8hDtq6cxlPtdk2f8GHVdmnmbkyQvvY1XGefqFStxu9k0IkEirHDx22TZxeY8hLgBdQqorV2uT80AkHN7B1dSExggHLMIIBxwIBATCBozCBljELMAkGA1UEBhMCVVMxEzARBgNVBAoMCkFwcGxlIEluYy4xLDAqBgNVBAsMI0FwcGxlIFdvcmxkd2lkZSBEZXZlbG9wZXIgUmVsYXRpb25zMUQwQgYDVQQDDDtBcHBsZSBXb3JsZHdpZGUgRGV2ZWxvcGVyIFJlbGF0aW9ucyBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eQIIDutXh+eeCY0wCQYFKw4DAhoFADANBgkqhkiG9w0BAQEFAASCAQBqBIC5aqR+ew0fxL4GCcmVbeasfStPWO5qoIJ+tnPkChCy6pPBc/Zx0I7l6jcybphLtzzl2CoPJDC9olGtQe47FCqQ/PmbHEohRPx+Qwox7miwtioRnQS4+5mZ+cwhyVXgrqauu9r/PGynCMLLmKPDjC5bgdklN7mriFg7vSu9BA7TxGgkcWr4YVXnV4NZGGa39scuXQNkK4AnxGSvkwQbqrrDnWiYGu7zMac6uFIh0HkXFXljbBz2jqX8iHfcnNFeVqkFOJ6r8fUm11qMpx3qcxU0Lm26a+84T+ahOqKJYVRdPuv+USgu1N1xsbeHFwSSheIb8H+0DMe+5FzEv8yp
[originalTransactionIdentifierIOS] => (originaltransactionId)
[transactionDate] => (transactionseconds)
[originalTransactionDateIOS] => (originaltransactionseconds)
[productId] => (productId)
[transactionId] => (transactionId)
)
答案 0 :(得分:0)
似乎我正在发送整个交易收据对象,而不是通过提取发送的对象的'transactionReceipt'属性。所以我只需要改变这个...
$curl_post_data = array(
'receipt-data' => $request->receipt,
'password' => $password
);
对此...
$curl_post_data = array(
'receipt-data' => $request->receipt->transactionReceipt,
'password' => $password
);