Error Handling

Prev Next

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 responds with a 4xx response.

  • 201 responses indicate Bento has created a payment method successfully.

  • 201 responses indicate Bento have submitted a transaction to the payment process for processing and that the transaction was successful.

The top-level status field on 4xx 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.