简体   繁体   English

Braintree付款方式在node.js中创建问题

[英]Braintree payment method create issue in node.js

I am trying to create Braintree Payment Method. 我正在尝试创建Braintree付款方式。

But I need to store CVV, expirationDate but official document page showing these two are deprecated. 但是我需要存储CVV,expirationDate, 但是显示这两个的官方文档页面已弃用。

Right now I am using code for creating Braintree Payment Method. 现在,我正在使用代码来创建Braintree付款方式。

Example : 范例:

gateway.paymentMethod.create({
  customerId: req.session.passport.user.braintree_customer_id,
  paymentMethodNonce: "fake-valid-mastercard-nonce",
  cardholder_name: req.session.passport.user.first_name+" "+req.session.passport.user.last_name,
  billingAddress: {
    streetAddress: req.body.address1,
    locality:req.body.city,
    region:req.body.state,
    postalCode:req.body.zip
  },

  options: {
    verifyCard: true,
  }
}, function (err, result) {
  if(err){console.log(err);return false;}
  callback(false,result)
}); 

But I need to store CC, CVV, Exp Date, Cardholder name, etc. 但是我需要存储CC,CVV,Exp Date,持卡人姓名等。

Full disclosure: I work at Braintree. 全面披露:我在Braintree工作。 If you have any further questions, feel free to contact support . 如果您还有其他疑问,请随时与支持小组联系

You're using a payment method nonce to send the credit card details, which includes the number, cvv and expiration details. 您正在使用付款方式随机数发送信用卡详细信息,其中包括号码,个人简历和有效期详细信息。 Cardholder name is not deprecated, so you can submit that separately from the nonce. 持卡人姓名未作废,因此您可以将其与现时分开提交。

Note: CVVs are used for the initial transaction, but are not stored in the vault. 注意:CVV用于初始事务,但不存储在Vault中。 In fact, there is no way to store the CVV in the vault. 实际上,没有办法将CVV存储在Vault中。

Yes i was fixed issue using 是的,我已经解决了使用

paymentMethodNonce : nonce-from-the-client paymentMethodNonce:客户端随机数

Example Code: 示例代码:

    gateway.paymentMethod.create({
              customerId:'xxx',
               paymentMethodNonce: 'nonce-from-the-client',
               cardholder_name:'xxx' 
-----------------------------------------------------------

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

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