Alipay Mobile Website Payment Interface Integration Experience Summary _ Alipay Mobile website Payment

Source: Internet
Author: User

1. Apply for the Enterprise account: We need a business account;

2. Product function Contract: Alipay open Platform provides a variety of features of the API to find the API we need to view the document (mobile website Payment product Introduction https://b.alipay.com/order/productDetail.htm?productId= 2013080604609688), the product function contract;

3. Download the corresponding API demo for testing (for example, mobile website payment interface Download Address: https://doc.open.alipay.com/doc2/detail.htm?treeId=54&articleId=104511 &doctype=1);

4. Download and unpack the folder structure:

5. Select the Java development of the test package, go in according to the Readme.txt documentation instructions for parameter configuration can be tested (Test Package Server Asynchronous Notification page path and page jump synchronization notification page path in the test can not be configured);

Several important parameters:

A. Partner ID, signing account, with 2088 beginning by 16-digit pure number of strings, view address: https://b.alipay.com/order/pidAndKey.htm;

B. Collect payment account, with 2088 beginning by 16 digits of pure digital string, in general, the collection account is signed account;

C. Merchant's private key, Java development needs PKCS8 format, RSA public key generation:https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7629140.0.0.nbdxfy& Treeid=58&articleid=103242&doctype=1

D. Alipay's public key, view address: https://b.alipay.com/order/pidAndKey.htm;

E. Way of Contracting: RSA

About key: Generate Merchant private key and merchant public key by using key generator, public key put on the net to save, generate payment public key (note: Pay public key, and merchant public key is different)

Note: When paying, want to change the mobile phone Alipay (equipped with Alipay app) function, need to webroot the test package under the alipayapi.jsp:

Sparatemp.put ("App_pay", "Y");/enable this parameter to evoke purse app payments. Release. So as to achieve the same experience of mobile phone app payment.


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.