- “x-publisher-token” - the publisher token found in the Dashboard admin panel, integration tab, can be used for multiple Appcharge accounts.
- “signature” - the HTTP payload signed (hashed) using the below description:
-
The schema consists of 2 parts:
- Time in UNIX timestamp format
- Time is in UTC Now
- Verify that the time sent in the payload is at the last 1-5 minutes
- The HTTP payload sign using sha256 and the main key. Formatting the output in hex encoding
- Take the currentTimestamp from the provided header
- Run the same algorithm as above to create the signature using the currentTimestamp from the header
- Validate that the currentTimestamp is not older then ~5 minutes to prevent replay attack
