Appearance
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
| Field | Type | Required | Description |
|---|---|---|---|
paymentReference | string | Yes | Reference 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" }
}