Payment is succesfull on declining the transaction

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shlokavani created an issue. See original summary.

poojasharmaece’s picture

Status: Active » Needs review
Issue tags: -sp
FileSize
1.54 KB

I am uploding a Patch, But I never tested due to time sortage, Hope this will works.

sriharsha.uppuluri’s picture

Status: Needs review » Needs work

No, the patch is not working.

Need to add use Drupal\commerce_payment\Exception\PaymentGatewayException;

and also

      case 'Aborted':
      case 'Failure':
        throw new PaymentGatewayException("Failure");
        break;

Is working I have tested. Please update the patch.

ramreddy.kancherla’s picture

Status: Needs work » Needs review
FileSize
1.04 KB

Here is revised patch file.

visabhishek’s picture

Thanks ramreddy.kancherla for the patch.