in-app purchase API to verify payment

Hello,

Someone know if have some way to check the payments for subscription directly from API?

I would like to verify the status of subscription without the dependence of mobile.


For example:

Send to some api the reciepe ID of transaction, then the server return the status like "payment OK", "canceled by user", etc...


Thank you!

You can do that for autorenewable subscriptions only. You get a receipt from the app itself. You can send that receipt to your server from the app. Your server can send that receipt to the Aple servers whenever it wants and receive a latest_receipt_info field.

Nice!

Do you have some example, how can I implement the check on my server?

Because, Im looking for it, and no find anything... 😕

Thank you!!

I got it!

But, right now Im having issue with itunes store and base64...

Some times, the return of in-app is "Can't connect on Apple Store"..

And about base64, I dont know what exactly I need to convert to base64... Im using backend in PHP...

in-app purchase API to verify payment
 
 
Q