See also the PaymentMethod response object.

Look up a payment method by token.

Node.js
gateway.paymentMethod.find("token", function (err, paymentMethod) {});

If the payment method can't be found, it will return a notFoundError.

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.

Node.js
gateway.paypalAccount.find("theToken", function (err, paypalAccount) {

});

If the PayPal account can't be found, it will return a notFoundError.