Error Handling
  • 06 Aug 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Error Handling

  • Dark
    Light

Article summary

General errors are reported using the HTTP response codes outlined in the Payment Gateway API.

Where a request is explicitly declined by a payment processor, Bento still records the attempt to create or update the transaction and so responds with a 2xx response;

  • 201 responses indicate Bento has created a record for the transaction, which will contain details on whether or not the payment process declined the response.

  • 202 responses indicate Bento have submitted a transaction to the payment process for processing. The status of the transaction will be updated once the payment processor has completed processing, see Transaction History for more details.

The top-level status field on 2xx responses can be used to determine the outcome of the latest action performed on the transaction. It will contain a Payment Gateway Codes, a description and an outcome which can be used to determine whether a failed transaction can be retried.


Was this article helpful?

ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence