dimanche 4 août 2019

Server side BrainTree credit card tokenizer

From this I know I can generate a token for a credit card, but I couldn't be able to find any documents regarding generate the token from the server-side. If I think correct about this, passing the token to the server from the client JS is a noticeable security bug.

token = client.tokenizeCard({
  number: '4111111111111111',
  // or expirationMonth and expirationYear
  expirationMonth: '10',
  expirationYear: '2015',
  // CVV if required
  cvv: '832'
}, function(e, nonce) {
    console.log([e, nonce]);
});

Question:

How can generate a credit card's token in from the server-side?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire