简体   繁体   English

Braintree客户:表单提交失败

[英]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.

相关问题 Braintree支付表格提交将被AngularJS拦截 - Braintree drop-in payment form submission to be intercepted by AngularJS 客户端重定向提交表单 - Client Side Redirect on Form Submission 提交表格后,Fancybox中的成功/失败消息 - Success/Failure Message in Fancybox after Form Submission 如何在客户端SDK中提交带有payload.nonce的表单? 我正在使用Braintree提供的示例吗? - How can I submit a form with payload.nonce in client sdk? I'm using an example given by the Braintree? 客户端提交Ajax表单后的重定向 - Redirection after ajax form Submission from the client side 提交表单前在javascript中减小客户端的图片大小 - Reducing size of the image at Client Side in javascript before form submission 将Braintree Client令牌集成到braintree.client.create中 - Integrating Braintree Client token into braintree.client.create 结合服务器和客户端事件处理程序以进行xPage表单提交 - Combining server and client side event handlers for xPage Form Submission 在表单提交之前无法实现客户端地理编码 - Implementation of client side geocoding before form submission doesn't work 表单提交中的另一个“无法设置标题后发送给客户端” - Another “Cannot set headers after they are sent to the client” on Form Submission
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM