How to test Payment Capture Failed event trigger

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
BlackIce
Ensign (ENS)
Ensign (ENS)
Posts: 12
Joined: Mon Aug 31, 2015 1:16 am

How to test Payment Capture Failed event trigger

Post by BlackIce » Fri Dec 06, 2019 11:42 am

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!

jguengerich
Commodore (COMO)
Commodore (COMO)
Posts: 436
Joined: Tue May 07, 2013 1:59 pm

Re: How to test Payment Capture Failed event trigger

Post by jguengerich » Tue Dec 10, 2019 9:31 am

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.
Jay

User avatar
Naveed
Rear Admiral (RADM)
Rear Admiral (RADM)
Posts: 611
Joined: Thu Apr 03, 2008 4:48 am

Re: How to test Payment Capture Failed event trigger

Post by Naveed » Wed Jan 22, 2020 8:16 am

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

Post Reply