Good to know
To complete payment using any of the payment methods, RSA encryption PKCS#1 v1.5 is used to encrypt the payload with any of the payment methods selected then the complete pay order API is called.
Pay With Card
Sample payload To encrypt:
{
"reference": "{{orderreference}}",
"paymentoption": "C",
"country": "NG",
"card": {
"cardnumber": "5123450000784608",
"expirymonth": "01",
"expiryyear": "39",
"cvv": "193"
}
}
Pay With Bank Transfer
Sample payload to encrypt:
{
"reference": "{{orderreference}}",
"paymentoption": "bank-transfer",
"country": "NG",
"BankTransfer": {
"bankcode": "000017"
}
}
Sample payload passed to Pay Order API after encryption
{
"data": "{{encrypteddata}}"
}