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

Add a card_error_code returned by a failed-verification bank account #583

Merged
merged 1 commit into from
Feb 28, 2020

Conversation

dkulchenko
Copy link
Contributor

As seen in this response to a call to Stripe.BankAccount.verify:

%Stripe.Error{
  code: :invalid_request_error,
  extra: %{
    card_code: :bank_account_verification_failed,
    http_status: 402,
    raw_error: %{
      "code" => "bank_account_verification_failed",
      "doc_url" => "https://stripe.com/docs/error-codes/bank-account-verification-failed",
      "message" => "The amounts provided do not match the amounts that were sent to the bank account.",
      "type" => "invalid_request_error"
    }
  },
  message: "The amounts provided do not match the amounts that were sent to the bank account.",
  request_id: nil,
  source: :stripe,
  user_message: nil
}

As seen in this response to a call to Stripe.BankAccount.verify:

%Stripe.Error{
  code: :invalid_request_error,
  extra: %{
    card_code: :bank_account_verification_failed,
    http_status: 402,
    raw_error: %{
      "code" => "bank_account_verification_failed",
      "doc_url" => "https://stripe.com/docs/error-codes/bank-account-verification-failed",
      "message" => "The amounts provided do not match the amounts that were sent to the bank account.",
      "type" => "invalid_request_error"
    }
  },
  message: "The amounts provided do not match the amounts that were sent to the bank account.",
  request_id: nil,
  source: :stripe,
  user_message: nil
}
@coveralls
Copy link

Coverage Status

Coverage remained the same at 88.202% when pulling 24bca65 on dkulchenko:patch-1 into fe92bde on code-corps:master.

Copy link
Collaborator

@snewcomer snewcomer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@snewcomer snewcomer merged commit 2dfcfba into beam-community:master Feb 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants