Improve Exception Handling

Created on 12 July 2023, over 1 year ago
Updated 8 August 2023, over 1 year ago

Problem/Motivation

If an API-Request fails, the user faces an uncaught exception (Server Error). There are exception which can be thrown for better error handling in \Drupal\commerce_payment\Exception

Steps to reproduce

  1. To trigger a API error, you can set the your mail address to an invalid mail e.g. test@example.c.
  2. Complete the checkout to the payment.
  3. The Drupal-Server throws an uncaught exception.

Proposed resolution

Use the exception from postfinance SDK to determine the correct commerce_payment Exception.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024