Retrieve payment status
Retrieves the authoritative payment status of an order. After a payment attempt, poll this endpoint from your return URL every 2-3 seconds until status is success or failed. When is_retry_available is true, the payment can be retried. For an order not on the customer’s credit line that its loyalty points, credit balance or discounts pay in full, so it needs no payment, status is success once its purchase completes; until then it is pending (partially_paid once part of its credit balance is settled against it); amount_paid and amount_unpaid are the parts of that credit balance settled and still to be settled (both 0 when no credit balance is used); and is_retry_available is false. An order paid by bank transfer, into the customer’s virtual account or recorded by an admin as one, reports the same way: pending until its transfers are settled against it, partially_paid while part of it is, then success, with amount_paid and amount_unpaid the parts settled and still to be settled. A refunded gateway order reports refunded or refund_initiated. A payment request cancelled with nothing paid reports failed. A cancelled order has no payment status to report: the request fails with the validation-error error code.