asp.net - How to Proceed 3D Secure transactions for cards that are stored in Vault using BrainTree API -


i have tried braintree api dotnet webform application , able create transactions successfully. got stuck in 1 of issues of setting transactions 3d secure verification cards stored in braintree vault.

in api have mentioned pass nonce server , amount client side verify transaction. im unable link. im confused in accessing liability shifted concept. can have better explanation on this?

i have gone through api thoroughly unable figure out issue.

my requirement: need create 3dsecure transactions within applications cards enabled 3d secure. how ever if customer did not enable 3d secure should able complete transaction.(this understood passing 3d secure - required attribute false server side) need save card details in vault saved cards section. when im trying invoke 3dsecure saved cards section response.nonce generated client side same nonce generated @ server side. says nonce used.

so please me in regard. in advance.

srikanth

i work developer @ braintree. if server , client side code integrated properly nonce returned verify3ds() method on client should different 1 generated on server.

server side: generate payment method nonce on server using payment method's token.

// generate nonce payment method on server  var result = gateway.paymentmethodnonce.create("paymentmethodtoken"); var nonce = result.target.nonce; 

note: i'm working on including code snippets in our documentation prevent confusion in future how generate nonces on server.

client side: use nonce server verify card. use nonce client complete transaction.

var paymentmethodnonce = 'nonce_from_server';  client.verify3ds({   amount: 500,   creditcard: paymentmethodnonce }, function (error, response) {   if (!error) {     // 3d secure finished.      // use nonce in response create transaction. should different nonce created on server.      // console.log(response.nonce);   } else {     // handle errors   } }); 

as question liability shift, 3d-secure protocol can shift liability of fraud merchant card issuers depending on parties participate in 3d-secure.

the response object in callback contains details on whether liability shifted or whether liability shift possible given payment method.

client.verify3ds({   amount: 500,   creditcard: paymentmethodnonce }, function (error, response) {   if (!error) {     // response include liability shift details use      // console.log(response.verificationdetails);   } else {     // handle errors   } }); 

i recommend revisiting documentation on what liability shift response values. hope helps!


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -