Alan Andrade
Alan Andrade

Reputation: 180

ActiveMerchant Authorize.net Cim wont generate declines

I'm working on an implementation with ActiveMerchant that uses AuthorizeNetCim.

I followed this guide to generate a declined transaction or AVS errors.

Every transaction I do, will return as a successful transaction.

I'm setting the ActiveMerchant flag to true so that it hits the test_url.

This is the only thread I've found in regards the same problem.

Upvotes: 0

Views: 268

Answers (1)

Alan Andrade
Alan Andrade

Reputation: 180

This pull request solves the problem:

https://github.com/Shopify/active_merchant/pull/785

Basically we need to split the test flag in two: - test : Indicates which url to hit. - test_requests : Indicates if requests should carry the test flag or not.

This way, you can hit the test environment but send a real transaction which will react to the error generation guide from authorize.net.

Upvotes: 1

Related Questions