IOS-Precautions for using in-app payment, ios-Precautions

Source: Internet
Author: User

IOS-Precautions for using in-app payment, ios-Precautions

I. iOS development.

If the purchase is successful, we need to send the credential to the server for verification. In consideration of network exceptions, the sending credential operation on iOS should be persistent. If the program exits, crashes, or the network is abnormal, retry again.

2. server-side development.

The work on the server backend is relatively simple and consists of four steps:

1. Receive the purchase credential sent from iOS.

2. Check whether the credential exists and has been verified. Then, store the credential.

3. Send the credential to Apple's server for verification and return the verification result to the client.

4. If necessary, modify the user's membership permissions.

In consideration of network exceptions, the server verification should be a recoverable queue. If it fails, retry.

 

 

Reference: Tang Qiao, iOS development advanced.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.