Problem/Motivation
The voiding mechanism in the Accept Hosted implementation is not properly re-introducing a balance to the order. While the void is created in Authorize and the pending settlement is voided the Drupal order balance is still 0 and the payment still shows that fully amount was captured even though the payment is in a voided state.
Steps to reproduce
- Create an order
- Add a shipment
- Add a payment method using the Accept Hosted gateway and Click Pay(Confirm that the payment is “captured”)
- Click Void
- Payment will be voided but will not show an order balance
Expected outcome
Voiding or Refunding a payment should create a balance on the order equal to the amount that had been captured. While we are correctly sending void to Authorize Drupal is not registering the fact that the payment is not actually captured.
Business Requirements
- You should be able to void an authorization
- You should be able to void a captured payment that is in “awaiting settlement” in authorize
- You should be able to “refund” a settled payment
- In all cases a balance should be present on the order and the transaction in Authorize should match what is in Drupal (and vice versa).
Issue fork commerce_authnet-3566655
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
vmarchukFailed tests are not related to changes.
Comment #4
vmarchukCan be merged but blocked by https://www.drupal.org/project/commerce_authnet/issues/3568698
Comment #6
vmarchukCommitted!