Skip to content

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_9901

Call Get Transaction Status before fulfilling the order.

shouldWindowClose ​

ValueSame tabNew tab
false (recommended)Page redirects to redirectUrlTab redirects to redirectUrl
truePage stays open, no redirectTab closes, no redirect

Rexel Limited