Page 1 of 1

How to test Payment Capture Failed event trigger

Posted: Fri Dec 06, 2019 11:42 am
by BlackIce
I have set a custom email template on our online store for Payment Capture Failed event. I would like to test if the velocity script works fine, and the template looks ok in live. The question is, how can i test it? How can i produce a payment capture fail on the store to trigger the event?

This is a test shop, so i can mess with the payment gateway and so.

Thank you!

Re: How to test Payment Capture Failed event trigger

Posted: Tue Dec 10, 2019 9:31 am
by jguengerich
CyberSource has a test server environment you can set up. Their documentation lists specific payment amounts that trigger various rejection codes. If you want to test a successful authorization followed later by a failed capture, you could manually reverse the authorization (in the test environment web site) before trying to capture it. Not sure about other gateways.

Re: How to test Payment Capture Failed event trigger

Posted: Wed Jan 22, 2020 8:16 am
by Naveed
To test a Failed Payment scenario, Add and setup "AbleCommerce Test Gateway" payment gateway.

Administration > Configure > Payments > Gateways > Add Gateway

And from gateway configuration page, set its Execution Mode: to Always Reject