See also the Braintree_PaymentMethod response object.

Look up a payment method by token.

PHP
Click to copy
Copied
$paymentMethod = Braintree_PaymentMethod::find('token');

If the payment method cannot be found, you'll receive a Braintree_Exception_NotFound exception.

Arguments
token required, string

The alphanumeric value that references a specific payment method stored in your Vault.

Examples

Single PayPal account

If you want to look up a single PayPal account using its token, use the find method.

PHP
Click to copy
Copied
$paypalAccount = Braintree_PayPalAccount::find('token');

If the PayPal account cannot be found, you'll receive a Braintree_Exception_NotFound exception.

Still have questions?

If you can’t find an answer, contact our Support team.