PayWizard Open Platform API Signature Guide V3
This document outlines the signature verification process for PayWizard Open Platform API V3.
This document details the process for generating and verifying signatures for PayWizard Open Platform API requests using version 3 of our signature scheme. This process ensures the integrity and authenticity of API requests.
API request messages are signed using a SHA256-HMAC algorithm with your unique developer secret key.
Signature Generation Steps:
The general procedure for generating the signValue is as follows:
Obtain Request Body (stringA):
stringA):The raw JSON string from the request body constitutes stringA. Ensure no whitespace or reordering of keys is introduced if the original JSON string is obtained directly from the request.
{
"clientId": "client12345",
"merchantId": "10800000003",
"posId": "D31231234567890",
"terminalId": "12345678",
"terminalSn": "WP123987987897"
}Construct Signature String (stringSignTemp):
stringSignTemp): Concatenate the following string &clientId={clientId}&clientSecret={clientSecret} to the end of stringA. The resulting string is stringSignTemp.
{"clientId":"client12345","merchantId":"10800000003","posId":"D31231234567890","terminalId":"12345678","terminalSn":"WP123987987897"}&clientId=client12345&clientSecret=9fb645400aabaa33ee0e423405d8c676Example Request:
Below is an illustrative curl command demonstrating a signed API request:
curl --location --request POST 'https://uat.paywizard.biz/ovstrade/openVarSheet/queryStatus' \
--header 'jwt-token: BIKE195JVXTN7WA5DXZISQ11GPEUYI7A' \
--header 'Content-Type: application/json' \
--header 'sign: 57ba54072ed2aaa4b2905c41e7c91fd1395ef8f6f76e6e7cdbefe7a88437de6c' \
--data-raw '{
"clientId": "825420368247390208",
"pushId":"942783670425616384"
}'Sample Code for Encrypt:
Last updated