aporat / store-receipt-validator

PHP receipt validator for Apple iTunes, Google Play and Amazon App Store
Apache License 2.0
633 stars 153 forks source link

Client error #134

Closed lagox closed 3 years ago

lagox commented 3 years ago

Hi! I have moved to new vps server and redeployed my project. But ItunesValidator have some problems, when I validate receipt. On the local machine your library work fine, but in production I see this error:

{ "message": "Client error: POST https://buy.itunes.apple.com/verifyReceipt resulted in a 400 Bad Request response:\n\n\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\"/>\nError 400 Bad Request\n< (truncated...)\n", "exception": "GuzzleHttp\Exception\ClientException", "file": "/home/developer/sites/getmonetika/www/releases/1/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php", "line": 113,

Stafox commented 3 years ago

Sounds like the issue can be connected with your production data. Make sure you pass into validate method receipt base 64.

26 окт. 2020 г., в 20:00, Lagox notifications@github.com написал(а):

Hi! I have moved to new vps server and redeployed my project. But ItunesValidator have some problems, when I validate receipt. On the local machine your library work fine, but in production I see this error:

{ "message": "Client error: POST https://buy.itunes.apple.com/verifyReceiptresulted in a 400 Bad Request response:\n\n\n<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>\n<title>Error 400 Bad Request</title>\n< (truncated...)\n", "exception": "GuzzleHttp\Exception\ClientException", "file": "/home/developer/sites/getmonetika/www/releases/1/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php", "line": 113,

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

lagox commented 3 years ago

Sounds like the issue can be connected with your production data. Make sure you pass into validate method receipt base 64. 26 окт. 2020 г., в 20:00, Lagox @.***> написал(а): Hi! I have moved to new vps server and redeployed my project. But ItunesValidator have some problems, when I validate receipt. On the local machine your library work fine, but in production I see this error: { "message": "Client error: POST https://buy.itunes.apple.com/verifyReceipt` resulted in a 400 Bad Request response:\n\n\n\nError 400 Bad Request\n< (truncated...)\n", "exception": "GuzzleHttp\Exception\ClientException", "file": "/home/developer/sites/getmonetika/www/releases/1/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php", "line": 113,` — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Yes, I send base64 receipt.

lagox commented 3 years ago

In server I don't have a php-curl library, when I'm install this library - all work. Close issue