We are writing an application for Android OS which communicates with a server to perform its operations.
This application is subscription based and it's the responsibility of server to let the device know about subscription status of currently logged-in user.
We are planning to write In-App purchase usi开发者_运维知识库ng PayPal services, Therefore,I just need to know, Does PayPal Supports Server/Client Model, like iOS Does?
The following is the detailed process we are following for iPhone Applications.
- Device Sends purchase request to Apple's payment gateway
- The payment gateway sends back a digitally signed receipt.
- The device forwards this receipt to our application server
- The application server sends the receipt (for verification) to Apple's public Web API
- Apple's Web API Verifies the validity of receipt and returns readable contents of receipt back to app server.
- The server adjusts the subscription of paid user and sends "Success" back to the device.
Google launched In-app billing yesterday.
It uses the Android Market for payment.
A detailed documentation/examples can be found here.
精彩评论