Echeck payment methods store the opaque data, which is not usable for refunds. However, since the Drupal\commerce_authnet\Plugin\Commerce\PaymentGateway\AuthorizeNet implements SupportsRefundsInterface, the refund operation is offered for echeck transactions too.
The proper solution would be to create a separate payment gateway for echeck that does not implement SupportsRefundsInterface.
It's easier just to throw an exception in refundPayment().
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | commerce_authnet-2950779-echeck_refund-2.patch | 1.64 KB | czigor |
Comments
Comment #2
czigor commentedComment #4
czigor commented