ApiErrorException is not being caught

Created on 22 February 2024, 9 months ago

Problem/Motivation

Stripe\Error\Base is no longer defined based on:

In some places we're catching Stripe\Error\Base instead of Stripe\Exception\ApiErrorException.

Steps to reproduce

Try to add a new gateway and use invalid API keys, notice how the exception isn't caught.

Proposed resolution

Replace Stripe\Error\Base with Stripe\Exception\ApiErrorException.

🐛 Bug report
Status

Needs review

Version

3.7

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024