Sample request
Last updated
Last updated
Step 1: Resolve the domain name first
Step 2: Create application to submit public key and get app_id/rsa_saas_pub, configure callback address.
Step 3: The user is authorized to register, and obtains the three-party merchant code
Step 4: Get the open platform counter-question token by code
Step 5: Access to open resources:
Open Platform is an OAuth2.0 authorization login system built based on OAuth2.0 protocol standard. Before accessing the open platform, you need to prepare the following access materials through the management background:
appKey: Used to bind one-to-one with the UID of the merchant who opened the open platform, which is necessary to obtain the login permission of the open platform;
redirectUrl: The address to be used to jump to after the successful opening of an authorized account on the open platform; this address is filled in according to the actual business needs, if you do not know the business needs, you can fill in the exchange home page by default.;
Login to the administration background: Public Administration--> Open Platform Management--> Application Management
Submit the public key according to the content in the red box
User Registration Authorization - OAuth Authorization Login Page
Click Register with the correct appkey and redirectUrl
Browser access address: http://service.xxx.com/platform/login.html?appKey=xxx&redirectUrl=https:xxxx
If you are not registered, register first; if you are already a registered user, just click the "Confirm Authorization" button in the previous image
The system will send a verification code for authorization
Register (or login) to get the code successfully
If you fill in the first step of the registration callback address is the home page of the exchange; then you can see the following image, the arrow is the current Code obtained
Interface Address: http://servoce.xfnh.com/platformapi/chainup/open/auth/token
Interface Address: http://service.xfnh.fnhcom/platformapi/chainup/open/opay/createThirdOrder
Note!!! openId and userId can only exist one, if both exist at the same time, openId is preferred.
Payment Page
Interface Address: http://service.xfnh.com/pay.html
Login to the administration background: Public Administration--> Open Platform Management--> Application Management
Get the userId of the request parameter as shown in the image
Use POSTMAN tool to get the interface call address
The address of the interface call after assembling the parameters: https://service.xxx.com/pay.html?appKey=xxx&openId=xxx&token=xxx&orderNum=xxx
Engineers who are familiar with GET requests can directly follow the parameters to assemble the address to access
Insufficient balance in the management platform to recharge the coins ( if the balance is sufficient, you can ignore this step )
Asset Management -- > Financial Management -- > Coin Grant Tool
The page that will be redirected after successful payment ( the page is the redirectUrl configured in the first step )
Check Payment Order
Interface Address:http://service.xfnh.com/platformapi/chainup/open/opay/orderDetail
Use POSTMAN tool to get the interface call address;