Requirements: the user enters service number-> click the button below-> buy one-> jump to the payment page-> click the PAYMENT button-> call the payment-> after completion, a message is displayed, indicating that a ticket number already exists. service number, after completing the certification, I read the official documents and said it was not detailed. It was very difficult. Please... requirement: the user enters service number-> click the button below-> buy one-> jump to the payment page-> click the PAYMENT button->
Call payment-A message is displayed, indicating that the ticket number is displayed.
You have a service number and completed the authentication.
I read the official documents and said it was not detailed. It was very difficult,
Ask the instructor to recommend relevant tutorials. The simpler the better.
Thank you very much.
Reply content:
Requirement: the user enters service number-> click the button below-> buy one-> jump to the payment page-> click the PAYMENT button->Call payment-A message is displayed, indicating that the ticket number is displayed.
You have a service number and completed the authentication.
I read the official documents and said it was not detailed. It was very difficult,
Ask the instructor to recommend relevant tutorials. The simpler the better.
Thank you very much.
The payment method is JSSDK to complete the payment call. In addition, you need to complete the payment-related configuration with the service number. In addition, there are two kinds of notification for successful payment: synchronous notification (100% is not guaranteed to be completely correct) and asynchronous notification (ensure that the payment status is completely correct). The asynchronous notification URL passes the URL to the server before calling the interface.
The technical process is roughly as follows: the backend language SDK initializes and calls the API, assigns a value to the template, then calls JSSDK to initiate a payment, completes the payment, and synchronizes the prompt of JSSDK Call Notification Method completion, asynchronous interface notification ensures full synchronization of order status and payment
Use this https://github.com/overtrue/wechat.
1. Set the button type to view to open a page.
2. Use authorization on the page to obtain user information (openid is required for JSAPI Payment)
3. Generate the payment JS configuration file and bind it to the payment button on the page.
Reference: https://github.com/thenbsp/wechat
Payment example: https://github.com/thenbsp/wechat/blob/master/example/payment-brandwcpayrequest.php