Collect invoice payment by using a guest's unsaved credit/debit card

This API enables you to collect payment for an invoice by using a guest's previously-unsaved credit or debit card.

You must specify appropriate details for the invoice_id parameter in the request body, and this API will collect online payment for the invoice.

To collect invoice payment from a new payment account, follow these steps:

  1. Specify appropriate details for the invoice_id parameter in the API request body. In the API response, a URI will be generated from the payment processor as hosted_payment_uri
  2. Go to the provided hosted_payment_uri. You are then redirected to a Web page from the payment processor.
  3. Provide the required account details, and then click Pay Now.
    You have successfully collected online payment for the specified invoice.

Note: Remove the hash (#) at the end, when using this API.

Response Details

NameTypeDescription
token_idstringToken or Reference number for processing the online payment transaction.
hosted_payment_uristringRepresents the URI that redirects the cardholder to the 3D S screen.
errorObjectObject that contains error message and error code details. For more information, refer to the error Object table.

error Object

NameMessage
418Invoice with id: not found.
460Payment is already made in full.
4023Something Went Wrong.
Language
Authorization
Header
Click Try It! to start a request and see the response here!