Signature
Before the API integration, you need to get your APP ID and APP Secret.
Get APP ID and APP Secret
CCPayment API authenticates your requests by APP ID and APP Secret. Log in to your CCPayment account, go to Developer page, you can find your APP ID and APP Secret on this page.

Signature Guide
The body of HTTP is a json string.
Add the content in body of HTTP to the signature. Ensure the body content matches the signature content. As soon as CCPayment receives the request, the body content will be read and the signature will be verified.
If you use a tool to simulate the request, please make sure that the data in the body will not be formatted by json. Always make sure the body is a json string; for example, if you use postman, you should choose text format.
Examples
https://www.geeksforgeeks.org/sha-256-hash-in-java/
Last updated