See also the Braintree_PaymentMethod response object.

Look up a payment method by token.

PHP
$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
$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, give us a call at 877.434.2894 or contact our Support team