-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow access to some card information prior to using the nonce #15
Comments
Cool idea. Something you could do right now is:
|
You can do that to display a preview, but then if you create a transaction you won't get CVV verification at all, right? |
If you have CVV rules enabled in the control panel, Drop-in will validate the CVV and won't produce a nonce unless the credit card info is valid. |
Really? What would it do instead, display some error to the user? I just tried a few times in the sandbox with CVV 200, and the iframe generated nonces as usual. |
It would be surprising if there were some way to casually check CVVs without explicitly requesting a sale or verification. Braintree support has indicated to me by email that there isn't a good way to do what I want yet. |
@pdg137 totally my bad, you're right - that would be opening a huge avenue for fraud. I'm going to add the enhancement tag. |
Thanks. For comparison, Stripe includes CC info with their nonce. It would be great to have a feature like that here! |
@pdg137 we have recently released We have not yet added it to our documentation (coming soon) but I am happy to help here to see if this addresses your issue. braintree.setup('TOKEN', 'dropin', {
container: 'my-container',
onPaymentMethodReceived: function (payload) {
// payload.nonce
}
}); The {
nonce: 'A nonce',
type: 'CreditCard',
details: {
lastTwo: '44',
type: 'Visa'
}
} Go ahead and try this out and let me know if that solves your problem. You can get the latest version of |
Is it really only going to be the last two digits? Will the information be available in the Ruby interface to the nonce, or do we have to use Javascript to see it? |
@pdg137 you can grab the last four using the Ruby client library. Unfortunately for security reasons our client API only returns the last 2 digits of a card. |
So it is only available in Ruby after you make a transaction; you can't get it from the nonce in Ruby? |
@pdg137 that's correct - the nonce doesn't contain any information within itself, it just points to a payment method in the gateway. |
Closing - let me know if you have any other questions 😄 |
Was looking for this exact feature 👍 |
Looking for same feature in Java. I want to retrieve the billing address using the Braintree nonce, validate it, & then create a customer profile. Is it possible to get the credit cards details (expiry info, billing address ect.) using the nonce (before creating a customer)? |
@pvaibhav1510 I just commented on #109 with this:
|
Many checkout systems show a preview page with a summary of what is about to happen, like "$44 will be charged to your Visa ending in 1234". That's not possible with the Drop-In UI, since the only thing we have access to at preview time is a nonce, and (if you care about the CVV) the nonce can only be used to create a transaction.
So, here is a simple feature request: the Drop-In UI should submit the credit card type and last four digits in some additional parameters to our form, along with the nonce. Presumably something similar would apply to PayPal transactions.
The text was updated successfully, but these errors were encountered: