WeChat Payment issues

Source: Internet
Author: User
Tags ticket
Let's talk about my process here.
1, the user orders, generate order and order number
2, the user pays: the first dynamic generation of a payment ticket, and the order Number table associated with the payment of the ticket to pay.
3, after the successful payment, the callback address to receive the sent over the payment number, according to the payment number to complete the order payment.

I always feel that the design is inappropriate, but I do not think of a good plan, the main questions are the following
1, each payment, the dynamic generation of payment number, whether there will be problems
2, after the payment succeeds, callback the time, in case my server hangs up, how to remedy.
3, because the payment success callback, is based on the dynamic generated payment number to complete the order payment, in case the callback address leaked, was malicious speculation to pay the number, how to do.

PS: (The reason is to pay by the dynamic payment number, because the user in the middle of the payment of the cancellation, the time to pay again, to submit different order numbers, so as to avoid the prompt order duplication)

The first time to do the payment function, technology is not enough, look at the way the Great God patient enlighten

Reply content:

Let's talk about my process here.
1, the user orders, generate order and order number
2, the user pays: the first dynamic generation of a payment ticket, and the order Number table associated with the payment of the ticket to pay.
3, after the successful payment, the callback address to receive the sent over the payment number, according to the payment number to complete the order payment.

I always feel that the design is inappropriate, but I do not think of a good plan, the main questions are the following
1, each payment, the dynamic generation of payment number, whether there will be problems
2, after the payment succeeds, callback the time, in case my server hangs up, how to remedy.
3, because the payment success callback, is based on the dynamic generated payment number to complete the order payment, in case the callback address leaked, was malicious speculation to pay the number, how to do.

PS: (The reason is to pay by the dynamic payment number, because the user in the middle of the payment of the cancellation, the time to pay again, to submit different order numbers, so as to avoid the prompt order duplication)

The first time to do the payment function, technology is not enough, look at the way the Great God patient enlighten

1, you can be your own husband into a number, and then transferred to pay.
2. If the callback fails, the callback will be repeated every other time until it succeeds or reaches a certain number of times to stop.
3, signature encryption know it's useless

  • 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.