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().

Comments

czigor created an issue. See original summary.

czigor’s picture

Status: Active » Needs review
StatusFileSize
new1.64 KB

  • czigor committed f3d5b7e on 8.x-1.x
    Issue #2950779 by czigor: Handle echeck refunds
    
czigor’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.