Always respond to 2c2p notification request

Created on 21 February 2023, over 1 year ago
Updated 5 August 2024, 3 months ago

Problem/Motivation

As documented in commerce module, onNotify method should never throw exceptions and should always acknowledge receiving the notification; currently 2c2p keeps sending notification requests if the payment failed.

Attached a patch that keeps throwing PaymentGatewayException and logging it but catches it and returns 200 response code.
In addition, I added a check for the order state before creating the payment similar to what we have in onReturn method.

🐛 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