Signature Hash
Hashing Algorithm | SHA512 |
SignatureKey | Signature Key received from the registered EMAIL. |
NOTE
- The combined string shall be UPPERCASED before the SHA512 hash computation.
- Amount shall always convert to two decimal places and consists only of digits. e.g 100.00 shall be converted to 10000 , 1 shall be converted to 100
Compute the SHA512 signature hash using the input format as below :
Payment Request Signature Calculation
Sha512 (SIGNATUREKEY ; CID ; V_CARTID ; V_AMOUNT ; V_CURRENCY)
Example Combined String
ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
;M102-U-999
;GKASHPO-12345
;10000
;MYR
Payment Response Signature Verification
Sha512 (SIGNATUREKEY ; CID ; POID ; V_CARTID ; V_AMOUNT ; V_CURRENCY ; status)
Example Combined String
ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
;M102-U-999
;GKASHPO-12345
;CARTID-123
;10000
;MYR
;88 - TRANSFERRED
Query & Refund Request Signature Calculation
Sha512 (SIGNATUREKEY ; CID ; CARTID ; AMOUNT ; CURRENCY)
Example Combined String
ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
;M102-U-999
;GKASHPO-12345
;10000
;MYR
SHA512 Hash Function
SHA512 Hash Function