问题
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