Skip to content

Finalize Payment Request ​

POST /api/payment/pay/finalize

Closes a payment after the customer has completed any authorization (e.g. 3D Secure). Moves funds to your account and generates the receipt.

Body parameters ​

FieldTypeRequiredDescription
paymentReferencestringYesReference returned by Initiate

Request ​

bash
curl --request POST \
  --url https://laas.rexel.ng/api/payment/pay/finalize \
  --header 'X-Api: sk_test_xxx' \
  --header 'content-type: application/json' \
  --data '{ "paymentReference": "THGUJYNHACLVSPG" }'

Response ​

json
{
  "title": "Request processed successfully",
  "status": 200,
  "isSuccess": true,
  "message": "Success",
  "responseCode": "00",
  "value": { "status": "completed", "message": "Resource created successfully" }
}

Rexel Limited