Replies: 1 comment 2 replies
-
You should receive it from the front-end (Mobile application). After completing the purchase request it will receive the receipt data. This discussion may help Update: Thu 5 Aug 9:29PM GMT+2 Now, I can understand the problem. It seems to me that you miss something. I'll show you how to handle verification and subscription events in the following lines. Initial PurchaseThe purchase is completed on the mobile application. Once the transaction is completed, you will receive an App Store receipt which is a binary encrypted file signed with an Apple certificate. The Mobile developer should send this file to your backend along with some data about the user. On the backend, you can parse and validate this receipt using the Handling eventsOnce you receive an event, you can get the receipt unique identifier, using this identifier you can find the associated user using a query to your database. Using the data of the event along with the unique ids of the subscription and the user you can implement your business logic as needed. |
Beta Was this translation helpful? Give feedback.
-
How can I get receipt base64 encoded string from apple subscription events for validation?
$receiptData = 'the_base64_encoded_receipt_data';
Now I get an error in log files
Call to undefined method Imdhemy\\AppStore\\ValueObjects\\ReceiptInfo::getReceipt()
Beta Was this translation helpful? Give feedback.
All reactions