$1 credit card verification for Braintree

吃可爱长大的小学妹 提交于 2019-12-24 11:36:29

问题


guys.
I'm using Braintree for site payments.
Trying to provide $1 credit card verification.
I have found in guide the piece of code.

result = Braintree::Customer.create(
  :first_name => "Fred",
  :last_name => "Jones",
  :credit_card => {
    :payment_method_nonce => nonce_from_the_client,
    :options => {
      :verify_card => true
    }
  }
)

Is this $1 dollar verification with verify_card parameter?

Thanks a lot.
Best regards.


回答1:


Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.

You can enable card verification for all transactions in your control panel, or enable it on a specific operation, like you're doing here, by passing the "verify_card" option. With either method the process for verifying a card is the same and includes $1 verifications where needed:

The gateway will first attempt a $0 verification, regardless of bank or processor. In the event that a bank doesn't accept a $0 verification, they'll normally respond with a message prompting Braintree to attempt a $1 verification instead, which Braintree will do automatically upon receiving the message. Even if the bank does not send this message, Braintree gives you the option to retry all failed $0 verifications, which you can enable in the control panel.



来源:https://stackoverflow.com/questions/32401988/1-credit-card-verification-for-braintree

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!