See also the PaymentMethod response object.

Look up a payment method by token.

Python
payment_method = gateway.payment_method.find("token")
This code snippet now uses gateway instance methods instead of class-level methods. Learn more.

If the payment method can't be found, it will throw a NotFoundError exception.

Arguments
token required, str

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.

Python
paypal_account = gateway.paypal_account.find("token")
This code snippet now uses gateway instance methods instead of class-level methods. Learn more.

If the PayPal account can't be found, it will throw a NotFoundError exception.