Overview
Step 1:
Obtain the merchant number and secret key (The merchant number/secret key can be viewed in System -> Basic Information menu)
Requests need to use Basic Auth Authentication
Obtain and temporarily store the Token for later use
Step 2:
1. Pass in the Token and verify whether the Token is valid
2. We will load the SDK page into the element area you specify, you only need to pass in an element ID
3. We support customizing the display information language, you only need to modify the corresponding JSON format
Step 3:
1. The user clicks the payment button and calls the bound pay method to initiate a payment request
2. Obtain the payment result through the onPaymentCompleted callback method and perform subsequent processing
3. Query the Appendix to process the payment result
Other Notes
Styles can be customized on the page where the element ID is bound, you only need to replace the SDK's default style in the style tag