简体   繁体   English

Braintree:用户可以更新其已存储的客户信息吗?

[英]Braintree: can users update their vaulted customer information?

I'm using the Braintree v3 javascript client implementation. 我正在使用Braintree v3 javascript客户端实现。 After my server returns to me the vaulted information on the customer : payment method, billing address, etc so I can pre-populate some fields on the UI, is there a way on the client side to update the information, such as billing address, if they want to change it? 服务器返回给我的有关客户的保险信息:付款方式,帐单邮寄地址等后,我可以在UI上预填充一些字段,客户端是否可以更新帐单邮寄地址等信息,是否要更改它?

Disclaimer: I work at Braintree. 免责声明:我在Braintree工作。 If you need more assistance, please reach out to Braintree Support . 如果您需要更多帮助,请联系Braintree支持

You can make a server side API call that updates the customer's information based on what they enter into your client-side form. 您可以进行服务器端API调用,以根据客户在您的客户端表单中输入的内容更新客户的信息。 Here is an example of making this call using the Node.js sdk: 这是使用Node.js sdk进行此调用的示例:

gateway.customer.update("theCustomerId", {
  firstName: "New First Name",
  lastName: "New Last Name"
}, function (err, result) {
});

A link with more details is located in Braintree's Support Documentation . 更详细的链接位于Braintree的支持文档中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM