See also the PaymentMethod response object.

Look up a payment method by token.

C♯
PaymentMethod paymentMethod = gateway.PaymentMethod.Find("token");

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

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.

C♯
PayPalAccount paypalAccount = gateway.PayPalAccount.Find("the_token");

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