在做销售交易前,我如何在金库中重新核实信用卡的支付方式.
注:启用、CVV和AVS规则。
场景是:
发布于 2016-11-10 16:44:12
我相信这取决于你是如何融入Braintree的。你在使用他们的托管域吗?顺道来?
基本上,根据他们的文档,您会提示用户创建一个只包含CVV的nonce。
braintree.setup('YOUR_CLIENT_TOKEN', 'custom', {
id: 'my-sample-form',
hostedFields: {
cvv: {
selector: '#cvv'
}
}
});一旦您拥有了该值,就可以将其传递给PaymentMethod.update()调用相应的支付方法令牌,并确保将verify_card设置为true。
result = braintree.PaymentMethod.update("the_payment_method_token", {
"payment_method_nonce": nonce_from_the_client,
"options": {
"verify_card": True,
}
})在https://developers.braintreepayments.com/reference/request/payment-method/update/#card-verification发现
https://stackoverflow.com/questions/40511090
复制相似问题