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.
| Comment | File | Size | Author |
|---|---|---|---|
| catch-exceptions.patch | 1.28 KB | redwan jamous |
Comments
Comment #3
josebc commented