- “x-publisher-token”: The publisher token found in the Publisher Dashboard under Settings > Integration. It 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
