Appearance
Redirect
Rexel hosts the payment page, handles PCI compliance and returns the customer to your site with a transaction reference.
Before you begin
You need your public key (pk_test_ or pk_live_).
Step 1: Build and encode the payload
json
{
"redirectUrl": "https://your-redirect-url.com",
"key": "pk_test_*****",
"showPersonalInformation": false,
"customerEmail": "test@example.com",
"customerName": "Vee Test",
"reference": "MC000000000029",
"shouldWindowClose": false,
"amount": 100
}All payments are in NGN; there is no currency field.
Stringify the object and Base64-encode it.
Step 2: Build the redirect URL
Append the encoded payload as a path segment, not a query string:
https://pay.rexel.ng/redirect/<base64-payload>Step 3: Verify on return
Rexel sends the customer back to redirectUrl with the reference:
https://your-app.com/callback?reference=REF_9901Call Get Transaction Status before fulfilling the order.
shouldWindowClose
| Value | Same tab | New tab |
|---|---|---|
false (recommended) | Page redirects to redirectUrl | Tab redirects to redirectUrl |
true | Page stays open, no redirect | Tab closes, no redirect |