The Order Payment Requests API allows you to create payment requests for existing eCommerce orders, enabling customers to pay an outstanding or partial balance. When you create a payment request, the response includes a payment page URL that you can share with the customer through your preferred channel.
With the Order Payment Requests API, you can:
A new order payment request starts with a status of UNPAID. The status changes automatically based on the following:
PAID: The customer completes payment on the payment page.EXPIRED: The expirationDate has passed. Expiration checks run periodically, so the status may change slightly after the expiration time.VOIDED: The payment request is voided using Void Order Payment Request.If you don't set an expirationDate, the payment request never expires. If you set an expirationDate that's already in the past, the payment request is created immediately with a status of EXPIRED.
Only UNPAID payment requests can be updated or voided.
It's important to note the following points before starting to code:
ORDER_PAYMENT_REQUEST_PAGE_NOT_FOUND.orderPaymentRequestUrl field of the create response. You can also retrieve it later using Get Order Payment Request URL.externalId: A reference to a record in the calling app's system (for example, a paylink ID or invoice ID). Required when creating a payment request.blockedPaymentMethods: A list of payment methods that can't be used to pay the request. Currently supports MANUAL only, which prevents customers from paying with manual payment methods.