Jump to content

Validate purchase like Google or Apple


Recommended Posts



I want to validate the purchase of the customer like for Google and Apple (https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/StoreKitGuide/VerifyingStoreReceipts/VerifyingStoreReceipts.html).


Is it possible to have receipt datas with Prestashop ?


The aim is to purchase on a database (prestashop database) and validate it before insert in another database (application database).



Share this post

Link to post
Share on other sites

If I quickly read it well,

They do something like this.


A client buys a product (Apple store). The application developer gets a message that client X bought this and that. Before entering the client/app info into it's database, it can check with apple if the client really bought this stuff, by sending a verification code (receipt-data in this case) to Apple. Apple checks the code and matches it with its own sales-database. When it can find it, it tells the developer that this client indeed bought the app. and the developer can put the client info in it's database.



Is you 'application' database from someone else, or also maintained by you? Then you can probably just couple the databases, in your protected environment, no verification seems necessary.


Otherwise: the sales-database can just send some message to the other database holder with a 'token' (any sort of long and difficult number), The receiving database can send the code back to the sales-database and let the sales database confirm that it indeed sent this code itself.


Just some first idea...


Share this post

Link to post
Share on other sites

Thanks for your answer.


I maintained the 2 databases.

I thought, in fact, create a web service that sends the information to the application database.
I would still much prefer a "receipt-data" if possible.



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More