Please generate the request signature according to the Interface Rules. Be sure to generate the signature on the server side.
3.
Each time the caller initiates a request, the User-Agent HTTP request header must be used to identify itself. The payment platform will refuse to process requests without a User-Agent.
The payment platform API uses HTTP status codes to indicate the result of request processing.
For successfully processed requests, if there is a response message body, it will return 200.
If request processing fails due to missing required parameters, insufficient balance during payment, etc., error codes within the 400 range will be returned.
If a server-side error occurs during request processing, a 500 status code will be returned. This situation is rare.
When request processing fails, in addition to the HTTP status code indicating the error, the API will return a specific error message in the message body. code: Interface Error Codes. message: Error description, using easily understandable language to explain the reason for the error.
The HTTP protocol requires the client initiating requests to use the HTTP header User-Agent to identify itself in each request. The payment platform recommends that callers choose one of the following two methods:
1.
Use the default User-Agent of the HTTP client.
2.
Follow the HTTP protocol and use information such as the name and version of their system and application to create their unique User-Agent. The payment platform API will refuse to process requests without a User-Agent.