Checkout callback
POST a callback to your configured callback URL when a checkout reaches a final status (COMPLETED, FAILED or EXPIRED).
Read more about callbacks.
The callback payload is the checkout in its final state, including the latest payment attempt (deposit) and the full history of attempts (depositsHistory).
If you have not configured callbacks, you can always call the Check checkout status endpoint to get the latest state of a specific checkout.
Headers
Body
The callback delivered to your configured callback URL when a checkout reaches a final status (COMPLETED, FAILED or EXPIRED).
The payload is the checkout in its final state, including the latest payment attempt and the full history of attempts.
The unique ID for this payment in PawaPay as specified by you during initiation.
36"f4401bd2-1568-4140-bf2d-eb77d2b2b639"
Possible checkout lifecycle statuses. This is distinct from the initiation status (CheckoutCreationStatus) returned when the checkout is created.
WAITING_PAYMENT- The checkout and its hosted payment page have been created and are waiting for the customer to pay.PROCESSING- A payment attempt is in progress and the checkout is still being processed.COMPLETED- The checkout has completed successfully. This is a final status.FAILED- The checkout has failed. InspectdepositordepositsHistoryfor the latest attempt result when available. This is a final status.EXPIRED- The checkout has expired and can no longer be used. This is a final status.CANCELLED- The customer cancelled the payment on the hosted payment page. This is a final status.
WAITING_PAYMENT, PROCESSING, COMPLETED, FAILED, EXPIRED, CANCELLED History of payment attempts within this checkout. A single checkout can contain multiple attempts, but at most one can complete successfully.
The metadata that was provided in the original initation request in a JSON object format.
{
"orderId": "ORD-123456789",
"customerId": "customer@email.com"
}A unique identifier that forms part of the checkout's redirect URL.
"PPGAFB57B93"
The URL the customer should be redirected to after the payment is processed.
"https://merchant.example.com/checkout-result"
The list of countries that the hosted payment page allowed for this checkout.
A country that the hosted payment page allows for this checkout.
Format is ISO 3166-1 alpha-3, three character country code in upper case. Read more from Wikipedia.
3["ZMB", "CIV"]The fixed amount the customer is asked to pay, specified per country and currency, as configured for this checkout.
When set, it contains an entry for each country in the countries array, defining the amount the customer pays for the country and currency they select on the hosted payment page. If not set, the customer enters the amount themselves on the hosted payment page.
A reference to an entity in your system that this payment relates to. For example, an invoice ID, customer ID etc.
"INV-123456"
The unique ID for this payment assigned by the provider. The customer would see this ID on their SMS receipt and transaction history.
"ABC123"
Current aggregate status for the checkout, representing the latest payment attempt:
PROCESSING- The latest payment attempt is still being processed. Attempts undergoing reconciliation also remainPROCESSINGuntil a final status is determined.COMPLETED- The latest payment attempt completed successfully.FAILED- The latest payment attempt failed.
PROCESSING, COMPLETED, FAILED Localized reason values shown to the customer inside the hosted payment page.
{ "en": "GOODS PURCHASE" }