RSA Signature Verification
This section describes how the RSA signature sent in the callback header can be verified. The signature is generated using an RSA Signing. For verification to succeed, the public key is required.
Last updated
This section describes how the RSA signature sent in the callback header can be verified. The signature is generated using an RSA Signing. For verification to succeed, the public key is required.
Last updated
Download the public key file for the specific environment by clicking the link below and store it somewhere on your server
Production
Sandbox
Below is the sample callback data for this demonstration
Obtain the value of the rsa-signature
header.
Form the string payload to be used in signature verification. This is obtained by concatenating values of the callback data in the format; id:invoice_number:payment_status:merchant_reference
and these values are obtained from the callback data. The string payload would therefore be 2061:
QINVNHNU4FMGMHBKA8YQ:
PAID:
1184
Use the public key obtained above to verify the signature as described in the sample source codes below;