Alipay buyer manually turned off the return page order how to update

Source: Internet
Author: User

The page has a short stay time, buyers see this message may be the current page off, resulting in the page does not automatically jump back to the merchant website

(Return_url) makes the merchant's business data not processed (e.g., the order is not updated). The reason for this is: the Merchant website Alipay

The interface did not take advantage of the server asynchronous notification paging file (Notify_url) or the page was abnormal during order execution.

Workaround:
Solution Personnel: Shop store development, maintenance or management of the program development Technicians, shop shop system providers
Solution steps:
1, open Return_url paging file (parameter parameter return_url corresponding return file), to find already prepared business logic processing code snippet,

Its increase prevents the transaction from being repeatedly processed by judgment.
2, open Notify_url paging file (parameter parameter notify_url corresponding return file), find the business logic of the merchant to insert the code of the place

, writing a program similar to the Return_url paging file also requires a judgment that prevents the transaction from being repeatedly processed.

Effect after modification:
When the buyer turns off the return page of the merchant's website automatically (parameter return_url corresponding return_url return file), the merchant's business processing is still

is executed by the Notify_url paging file so that no business synchronization occurs (e.g., the order is not updated)

Attention:
1, pay attention to get the value of the way, Notify_url page file is POST way get (Request.Form ("parameter name"), $_post[' parameter name ')

, the Return_url paging file is get-way (request.querrystring ("parameter name"), $_get[' parameter name ')
2, the characteristics of notify_url files are:
1, must ensure that the server asynchronous notification page (Notify_url) No characters, such as spaces, HTML tags, development system with the exception of the throw

information, etc.;
2, the way to get parameters in this page, you need to use the Post method to obtain, such as:
Request. Form ("Out_order_no"), $_post[' out_order_no '];
3, Alipay initiative to launch a notice, the way will be enabled;
4, only in Alipay's transaction management exists in the transaction, and the transaction status changes, Alipay will be the way to launch the server notification (

Instant to the account of the transaction status of "Waiting for the buyer to pay" the status of the default is not to send notifications;
5, the interaction between servers, unlike page Jump synchronization server asynchronous notification page can be displayed on the page, this interaction is not visible;
6, the first transaction status change (instant to the account when the transaction status is the transaction is completed), not only page Jump synchronization notification page will be enabled, and service

The asynchronous notification page will also receive the payment PO sent to the processing results notice;
7, the program must be printed out after the "success" (does not contain quotes). If the merchant feedback to Alipay the characters are not success these 7 characters,

Alipay server will continue to be notified until more than 24 hours and 22 minutes.
In 25 hours to complete 6~10 notice (Notice frequency: 5s,2m,10m,15m,1h,2h,6h,15h);
8, after the completion of the program execution, the page can not perform page jump. If the execution page jumps, Alipay will not receive the success character, will be paid the treasure service

The device determines that the page program is running abnormally, and the result of the postback process is notified;
9, cookies, session and so on this page will be invalidated, that is, can not obtain these data;
10, the debugging and operation of this mode must be on the server, that is, the Internet can access;
11, the role of this way mainly to prevent the loss of orders, that is, page Jump synchronization server Asynchronous notification page does not deal with order updates, it is to deal with;
12, the notification ID (parameter notify_id) only one minute validity period, more than one minute the notification will verify failure. Once the validation is successful, the next verification will

Failure

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.