Alipay Refund Interface (instant to account without a secret refund)

Source: Internet
Author: User
Tags documentation md5
REFUND_FASTPAY_BY_PLATFORM_NOPWD Official Reference Document:

Click to download: http://download.csdn.net/detail/ty_hf/9611096 Step: 1. According to the official documentation, write the parameters required for this interface; 2. The parameters are signed and the URL 3 is generated. Call this URL to jump to the corresponding request page 4. The synchronous callback returns the "admissibility result", note is the acceptance result, is that this refund Alipay has accepted the success to go to execute, as for the execution refund success, see 5 5. Asynchronously returns "refund result", detailed parameters see below

Note that this feature interface, which is not supported by default, requires a contract to be available. "

I. Sign-up steps:

1. Login http://b.alipay.com

2. Applicant Service, submit the application for opening this interface.

3. Wait a few days, Ali will contact you, to sign

4. Sign the agreement, open the interface, as shown below:




two. Access parameters:



Sample Request Parameters:

Array (size=12) ' service ' = = String ' refund_fastpay_by_platform_nopwd ' (length=30) ' partner ' = = String ' 22222162 4104006 ' (length=16) ' _input_charset ' + string ' UTF-8 ' (length=5) ' sign_type ' = = String ' MD5 ' (length=3) ' not Ify_url ' = = String ' http://www.test.com/admin/api/refund/alipay/notify_url.php ' (length=60) ' dback_notify_url ' = > String ' http://www.test.com/admin/api/refund/alipay/notify_url.php ' (length=60) ' batch_no ' = = String ' 2016081818103 ' (length=13) ' refund_date ' + string ' 2016-08-18 18:49:51 ' (length=19) ' batch_num ' = ' = String ' 1 ' ( length=1) ' detail_data ' = + string ' 2016081821001004270231872174^0.01^ negotiated refund ' (length=46) ' use_freeze_amount ' = + St Ring ' N ' (length=1) ' return_type ' = + string ' xml ' (length=3) https://mapi.alipay.com/gateway.do?_input_charset=utf- 8&batch_no=2016081818103&batch_num=1&dback_notify_url=http%3a%2f%2fwww.test.com%2fadmin%2fapi% 2frefund%2falipay%2fnotify_url.php&detail_data=2016081821001004270231872174%5e0.01%5e%e5%8d%8f%e5%95%86%e9%80%80%e6%ac%be¬ify_url=http%3a%2f%2fwww.121mai.com% 2fadmin%2fapi%2frefund%2falipay%2fnotify_url.php&partner=2222221624104006&refund_date=2016-08-18+18% 3a50%3a51&return_type=xml&service=refund_fastpay_by_platform_pwd&use_freeze_amount=n&sign=
 528ec9059f4bf1fb29d147632d737d73&sign_type=md5



Three. Callback Parameters:

1. Synchronous Handling Callback Parameters:


String ' <?xml version= "1.0" encoding= "GBK"?> 
<alipay>
<is_success>F</is_success>
<error>DUPLICATE_BATCH_NO</error>
</alipay> ' (length=122)

2. Asynchronous callback parameters: normal Asynchronous callback:

Success Example:
post:{"sign": "e18debab04898b7d5ce7d43823e21512", "result_details": "2016082921001004270202288006^0.01^ SUCCESS "," Notify_time ":" 2016-08-31 20:49:16 "," Sign_type ":" MD5 "," Notify_type ":" Batch_refund_notify "," notify_id ": "86742cf72c3edb4f2818e67799d873cmva", "Batch_no": "2016083120318", "Success_num": "1"}


failure Example:
post: {"sign": "85915ba45f3d14d5668e2387eadc8817", "result_details": "2016082721001004640239968415^160.00^seller_balance_not_ Enough "," Notify_time ":" 2016-09-01 10:00:52 "," Sign_type ":" MD5 "," Notify_type ":" Batch_refund_notify "," notify_id ":" E5b820377bb685b3462419885e505denn2 "," Batch_no ":" 2016090110120 "," Success_num ":" 0 "}




Charge return Adjustment:



Four. Problems encountered:

1. If you encounter problems, see a description of the problem with a secret refund, similar to

2. For details of non-secret refunds, please refer to the documentation for the required fields and special parameters, such as Detail_data

3. In the development process, the asynchronous callback can no longer local computer debugging, change the host or something is not valid, please go to the external accessible pages, or use "peanut shell" and other tools to map to the local can also



This address: http://blog.csdn.net/ty_hf/article/details/52483880



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.