WeChat development-What should I do if I want to go to the PHP page in the WeChat service number to complete the payment?

Source: Internet
Author: User
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

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.