Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `avs_result' for nil:NilClass #6

Open
ryaan-anthony opened this issue Oct 7, 2019 · 6 comments
Open

undefined method `avs_result' for nil:NilClass #6

ryaan-anthony opened this issue Oct 7, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@ryaan-anthony
Copy link
Contributor

Forter 1.2.3
Workarea 3.4.16

Attempting to place an order causes error:

NoMethodError: undefined method `avs_result' for nil:NilClass
  from workarea/forter/tender/credit_card.rb:48:in `verification_results'
  from workarea/forter/tender/credit_card.rb:23:in `to_h'
  from workarea/forter/payment.rb:38:in `build_tender_details'
  from workarea/forter/payment.rb:15:in `block in to_a'
  from workarea/forter/payment.rb:13:in `map'
  from workarea/forter/payment.rb:13:in `to_a'
  from workarea/forter/order.rb:86:in `forter_payments'
  from workarea/forter/order.rb:47:in `to_h'
  from workarea/checkout/collect_payment.decorator:8:in `purchase'
  from workarea/checkout.rb:193:in `place_order'
@ryaan-anthony ryaan-anthony added the bug Something isn't working label Oct 7, 2019
@jyucis
Copy link
Contributor

jyucis commented Oct 7, 2019

@ryaan-anthony

Can you give more details around what payment processor you are using? It looks like the transaction has no response, which is strange because fotrter evaluates the fraud post authorization.

Is the order being placed? Can you copy and paste the response from the credit card tender? This will help troubleshoot the issue.

@jyucis
Copy link
Contributor

jyucis commented Oct 7, 2019

@ryaan-anthony It seems that you are using checkout.com as a payment processor.

Make sure to use their approved test cards here: https://docs.checkout.com/docs/testing - using anything else will result in the behavior you are describing.

@ryaan-anthony
Copy link
Contributor Author

That's correct, checkoutdotcom plugin is installed/configured and we are using the test cards only.

@jyucis
Copy link
Contributor

jyucis commented Oct 7, 2019

Can you post the response of the transaction?

@ryaan-anthony
Copy link
Contributor Author

Sure, how can i generate a raw response?

@jyucis
Copy link
Contributor

jyucis commented Oct 9, 2019

Find a failed order and get the response from the transaction:

payment = Workarea::Payment.find('ORDERIDHERE')
payment.tenders.first.transactions.first.response

Some other helpful information:
1 - Is your payment processor in test or production mode.
2 - Is a hard error being thrown to the user or is the user going back to payment with a declined message?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants