result.credit_card_verification is returning nil even on error in braintree
问题 I'm using braintree for payment processing and I'm trying to get Processor Response Codes from Braintree with Ruby. Here is my code : verification = result.credit_card_verification response_code = verification.try(:processor_response_code) I'm getting verification as nil even when there is error. Is there something else to get Processor Response Codes? I got this code from here Here is my result.erros : :errors: !ruby/object:Braintree::Errors errors: !ruby/object:Braintree: