Braintree API: how can I determine which payment_method method is associated with my nonce?

Background:

  • I am creating a client named firstName, lastName and email
  • I use dropin ui in the statement form and it creates pay_method and token and sends me nonce. Still.
  • I need to add a billing address to payment_method before I charge nonce ...

Question: How can I find out which payment_method is associated with my nonce?

Edit to add: At the bottom of the javascript + PHP page, there is a paradoxical link to another undocumented parameter [paymentMethodNonce], which also uses undocumented [parameters] [verifyCard]. I believe that I can run [paymentMethodNonce] sans [options] against each payment_method token associated with the user and check for errors ... lol.

+4
source share
1 answer

I work at Braintree. If you have further questions, I suggest that you contact our support team .

"Drop-In" , "nonce". nonce :

$result = Braintree_PaymentMethod::create(array(
    'customerId' => '12345',
    'paymentMethodNonce' => 'nonce-from-the-client'
));

nonce , , .

, , .

+4

All Articles