2

我一直收到这个带有条纹的错误

An unexpected error has occurred with Stripe.js. This may be due to network connectivity issues, so you should try again (you won't be charged twice). If you're still having problems, please let us know!

当卡无效时,表单从不提交,但在显示此错误后表单提交成功,并且在条纹仪表板中,卡和客户添加没有问题。

4

1 回答 1

1

就像surendar自己说的:检查表单是否提交了两次。

我通过 Javascript 劫持了表单的提交事件并忘记返回“false”以防止默认提交操作。在我解决这个问题(即在我的提交方法中返回“false”)之后,一切正常。

于 2014-01-26T22:10:38.997 回答