Payment Method

Payment Method: Find

See also the Payment Method response object.

Look up a payment method by token.

  1. PHP
$paymentMethod = $gateway->paymentMethod()->find('token');
Arguments
tokenrequired, string
The alphanumeric value that references a specific payment method stored in your Vault.

Examplesanchor

Single PayPal accountanchor

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

  1. PHP
$paypalAccount = $gateway->payPalAccount()->find('token');

If the PayPal account can't be found, you'll receive a Braintree\Exception\NotFound exception.