Gateway methods block on 'pending' state check

Created on 26 April 2022, almost 3 years ago
Updated 19 February 2025, about 2 months ago

Problem/Motivation

There are two checks within the Datatrans payment gateway that verify that the payment is on the 'pending' state. This blocks our process since a Datatrans payment is never set to that state. It follows the 'payment_default' workflow which is New > Authorization > Completed | (Partially) Refunded.

Ideally we should check to see if the payment is in the initial state of its corresponding workflow. (Here it would be 'new' instead of 'pending')

Proposed resolution

Replace payment state checks 'pending' with 'new'.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇨🇭Switzerland corwino

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024