- Issue created by @rhovland
- Merge request !26#3483527 by rhovland: Fatal error on payment refund if payment method has been deleted β (Open) created by rhovland
- πΊπΈUnited States rhovland Oregon
Tests passing. Errors unrelated to MR.
If you try to refund a payment on an order which has had it's payment method deleted since the payment was created it will result in a fatal error.
Error: Call to a member function getBillingProfile() on null in Drupal\commerce_authnet\Plugin\Commerce\PaymentGateway\AcceptJs->refundPayment()
Create an order. Delete the payment method used for that order. Attempt to refund the order.
Add a check to the code to ensure the payment method exists before trying to continue. Add an error message if payment method doesn't exist.
Active
1.0
Code
Tests passing. Errors unrelated to MR.