【问题标题】:Braintree PAyment create customer and save payment methodBraintree PAyment 创建客户并保存付款方式
【发布时间】:2018-03-05 21:28:03
【问题描述】:

我正在尝试保存卡信息并同时创建客户。客户端应用程序创建一个随机数并将其发送到我的服务器(nodejs),我调用:

gateway.customer.create({paymentMethodNonce: request.params.nonce})

客户被创建,我得到一个客户 ID,我将它保存在数据库中。但是调用

gateway.customer.find(customer_id):`

返回:

Customer {
id: '697983269',
merchantId: 'yzkvrqy9qsctn69d',
firstName: null,
lastName: null,
company: null,
email: null,
phone: null,
fax: null,
website: null,
createdAt: '2017-09-25T00:37:29Z',
updatedAt: '2017-09-25T00:37:29Z',
customFields: '',
creditCards: [],
addresses: [],
paymentMethods: [] }

其中有空的付款方式数组。我正在使用仅询问卡号和到期日期的 UI 下拉菜单。这也是一个沙盒帐户。

【问题讨论】:

    标签: braintree braintree-sandbox


    【解决方案1】:

    全面披露:我在 Braintree 工作。如果您还有其他问题,请随时联系 support.

    嗨,迈赫迪。我仔细查看了您的 Braintree 沙盒,虽然您实际上是在 Vault 中创建客户记录,但似乎没有将 nonce 值传递到客户创建 API 调用中,导致客户记录仅包含客户 ID .

    您是否介意记录并在此处转发您在服务器上为 request.params.nonce 获得的值,并确保它包含来自您的客户端的有效 nonce 字符串?

    如果您需要进一步说明,请随时联系support。

    【讨论】:

      猜你喜欢
      • 2016-05-04
      • 2015-09-16
      • 2018-05-12
      • 2014-12-29
      • 1970-01-01
      • 2015-10-10
      • 2014-12-28
      • 2018-01-06
      • 2016-11-05
      相关资源
      最近更新 更多