On This Page
Step 4: Constructing the Signature Header
After you generate a signature hash, you can construct the
signature
HTTP header value.The
signature
HTTP header value is constructed using these
parameters:Signature Parameter | Description |
|---|---|
keyid | The serial number of the signing certificate/key pair. Obtain
this in the Business Center Key Management area. For more
information, see Transacting Merchant User: Create a Shared Secret Key Pair. |
algorithm | The HMAC SHA256 algorithm used to encrypt the signature. It
should be formatted: HmacSHA256 . |
headers | The signed-header values calculated in the signature:
IMPORTANT
If you are using a meta-key, set the
v-c-merchant-id signature-parameter
value to the meta-key creator's portfolio ID or merchant
account ID. Set the v-c-merchant-id HTTP
header value to the transacting merchant ID (MID) that you
are sending a request on-behalf of. |
signature | The signature hash. |
- Signature Field Format
- Signature:"keyid:"[keyid]",algorithm="[encryption algoritm]",headers="field1" "field2" "field3" "etc.", signature="[signature hash]"
- Signature Example
- Signature:"keyid="123abcki-key1-key2-key3-keyid1234567", algorithm="HmacSHA256", headers="host date request-target digest v-c-merchant-id", signature="hrptKYTtn/VfwAdUqkrQ0HT7jqAbagAbFC6nRGXrNzE="