code-corps / code-corps/code-corps-ember

Handle various Stripe.js error responses

未关闭
#933 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Skill: Ember.js Skill: JavaScript
主要语言
JavaScript
星标
120
派生
75
PR 合并指标
30 天内没有已合并 PR

描述

# Problem

This issue can serve as a compiled list of `Stripe.js` error responses we can encounter. Typically, these occur when we're creating tokens, for example, for cards, bank accounts, etc.

We may want to use them in the future, to generate validation errors for components of our account setup form.

List of error responses:

```JSON
{
"error": {
"type": "invalid_request_error",
"message": "Routing number must have 9 digits",
"param": "bank_account"
}
}

// we can probably punt this one

{
"error": {
"type": "invalid_request_error",
"message": "You cannot use a live bank account number when making transfers or debits in test mode",
"param": "bank_account"
}
}
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。