[英]Braintree client: form submission failure
I am totally new to braintree and was just trying out the tutorial (javascript for client and JAVA on the server side) 我是braintree的新手,只是尝试了教程(javascript为客户端和JAVA在服务器端)
I created a simple HTML file basically just wrapping the "Hello Client" example . 我创建了一个简单的HTML文件,基本上只包含“Hello Client” 示例 。 I had also tried using both the given clientToken provided in the example and one I obtained from the sandbox account. 我也尝试过使用示例中提供的给定clientToken和从沙盒帐户中获取的clientToken。
However, after I filled out a valid credit information and tried to submit the form, I've got this error: 但是,在我填写有效的信用信息并尝试提交表单后,我收到此错误:
"There was an error processing your request. Try again" “处理您的请求时出错。请重试”
And this error occurred BEFORE the form submission was actually sent to the server; 并且在表单提交实际发送到服务器之前发生了此错误; braintree.js seems to have intercepted the submission and did some authorization with its server, and thats where the error above came from braintree.js似乎拦截了提交并对其服务器进行了一些授权,那就是上面的错误来自哪里
I looked at the chrome developer console and saw the requests were like this: 我查看了chrome开发人员控制台,看到请求是这样的:
Request URL:https://client-analytics.sandbox.braintreegateway.com
Params:
authorizationFingerprint: [some fp]
sharedCustomerIdentifierType:undefined
analytics[][kind]:dropin.web.inline.add-card.fail
_meta[platform]:web
_meta[platformVersion]: [some value]
_meta[integrationType]:dropin
_meta[sdkVersion]:braintree/web/2.3.3
_meta[merchantAppId]:file:///Users/jiayaohan/Desktop/card.html
braintreeLibraryVersion:braintree/web/2.3.3
_method:POST
callback:callback_json9
And the status code itself was OK (200), but in the response, the content was: 并且状态代码本身是OK(200),但在响应中,内容是:
callback_json9({status:201})
Anyone knows what might go wrong with this very simple hello-world client setup? 任何人都知道这个非常简单的hello-world客户端设置可能出现什么问题? (noted that I've tried using both the given example client Token and one derived from my own sandbox account, but the same error happened) (注意到我已尝试使用给定的示例客户端令牌和从我自己的沙盒帐户派生的客户端令牌,但发生了同样的错误)
Thanks! 谢谢!
I work at Braintree. 我在布伦特里工作。
It looks like there was a failure adding a card. 看起来添加卡片时出现了故障。 Are you using the available testing card credentials? 您使用的是可用的测试卡凭据吗?
Sandbox only accepts certain test numbers , so that could be your issue. Sandbox只接受某些测试编号 ,因此这可能是您的问题。 The most commonly used test number is 4111111111111111
. 最常用的测试编号是4111111111111111
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.