To create an order, first the order data must be encrypted before proceeding to create the order. payload should be encrypted using RSA encryption PKCS#1 v1.5.
Payload to be encrypted using RSA PKCS#1 v1.5 Algorithm.
{
"customer": {
"firstname": "transact",
"lastname": "pay",
"mobile": "+2348134543421",
"country": "NG",
"email": "[email protected]"
},
"order": {
"amount": 100,
"reference": "12121212112",
"description": "Pay",
"currency": "NGN"
},
"payment": {
"RedirectUrl": "https://www.hi.com"
}
}
Sample payload passed to Create Order API after encryption
{
"data": "{{encrypteddata}}"
}