Alipay Mobile website Instant to account Interface (5) of the Transaction interface page jump synchronization notification

Source: Internet
Author: User

Objective

This article mainly tells the system to call Alipay Mobile website Instant Trading interface After Alipay returns the synchronization notification.

Alipay to the merchant's request data processing is completed, the processing of the results of data through the System Control client page automatically jump to notify the merchant website. These processing results data is the page jump synchronization notification parameters. Alipay accesses the merchant's website in Get mode (parameter Call_back_url, as specified in the "mobile Web instant to Account Authorization Interface (Alipay.wap.trade.create.direct)").

HTML Synchronous return feature

Alipay After processing the requested data, the current interface will automatically refresh, immediately display the processing results; processing a request, the current interface only jumps back once, that is, return only once processing results;
Because there is no parameter return_url to set the page Jump synchronization notification page file path, so the page file showing the processing results is located in the Alipay server, that is, the current page path address is to Alipay's domain name as the beginning;
This step can be debugged on the local computer, no need to go to the server;
The format of processing results display is HTML format;
This HTML format can be processed in the HTML remote parsing, so that it can be processed in the Alipay processing results to obtain relevant processing results data, and the results of the interface to the merchant business logic processing;
Local computer or merchant server configuration on the need to support HTML remote parsing, such as: Need to support SSL;
After the page jumps, the link in the browser's address bar is only valid for one minute, and the link address is invalidated for more than one minute, causing the business logic program written by the merchant in the page to not complete processing.

Page Jump sync notification page Properties

After successful payment, the buyer will see a Alipay prompt Trading success page, the page will stay for a few seconds, and then will automatically jump back to the merchant specified synchronization notification page (parameter call_back_url). The way in which parameters are obtained in this page needs to be obtained using get methods, such as request. QueryString ("Out_trade_no"), $_get[' Out_trade_no '].
This is done automatically after the buyer's payment is completed, so it will only be done once.
This is not the way to pay Bao initiative to call the Merchant page, but Alipay's program to take advantage of the page automatically jump function, so that the user's current page automatically jump.
This method can be debugged on the machine instead of only on the server.
The return URL has a one-minute validity period, and more than one minute the link address is invalidated and the validation fails.
When setting the path to the page Jump Synchronization notification page (Call_back_url), do not add custom parameters after the page file. For example: the wrong wording: http://www.alipay.com/alipay/return_url.php?xx=11 the correct wording: http://www.alipay.com/alipay/return_url.php
Since Alipay will validate the domain name of the page Jump Sync notification page (Call_back_url), set the path of the page Jump Sync notification page (call_back_url), do not set the cost machine domain name, or have special characters (such as "!"). ), such as: the wrong wording: http://localhost/alipay/return_url.php http://localhost:80/alipay/return_url.php/HTTP merchant custom address/alipay /return!url.do correct wording: can access the domain name address: http//Merchant custom address/alipay/return_url.php to be able to access the IP address: http://121.1.1.255/alipay/ return_url.ph

Authorization interface HTML synchronization return parameter description


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.