Credit Card Verification: Search
Note
Results are limited according to the PayPal Data Protection Addendum For Card Processing Products policy.
For operators available on search fields, see the search fields page.
- Node
const stream = gateway.creditCardVerification.search((search) => {
search.id().is("the_verification_id");
}, (err, response) => {
response.each((err, verification) => {
console.log(verification.status);
});
});;;
Parameters
The postal code on the billing address used for the credit card verification.
createdAtrangeThe date/time at which the credit card verification was created.
creditCardCardTypemultipleThe type of credit card verified. Possible values:
"American Express""Discover""Maestro""JCB""MasterCard""UnionPay""Visa"
The cardholder name in the credit card verification.
The expiration date of the credit card verified.
creditCardNumbertextThe number of the credit card verified.
Card number search is restricted: starts with searches up to the first 6 digits, ends with searches last 4 digits, and contains is not allowed.
customerEmailtextThe customer's email address associated with the credit card verification.
customerIdtextA string value representing an existing customer in your Vault that is associated with the credit card verification.
idtextThe ID of the verification.
idsmultipleThe list of verification IDs to search for.
The payment method token for the credit card verification.
Examples
Customer Details
- Node
const stream = gateway.creditCardVerification.search((search) => {
search.customerEmail().is("[email protected]");
search.customerId().is("cust1234");
});See search fields for a list of available operators. They allow you to do nice things like this:
- Node
const stream = gateway.creditCardVerification.search((search) => {
search.customerEmail().endsWith("example.com");
});Credit Card Details
- Node
const stream = gateway.creditCardVerification.search((search) => {
search.creditCardCardholderName().is("Patrick Smith");
search.creditCardExpirationDate().is("05/2012");
search.creditCardNumber().starts_with("4111");
search.creditCardNumber().ends_with("1111");
search.creditCardCardType().is(Braintree.CreditCard.Visa);
search.creditCardExpirationDate().is("02/16");
});Payment Methods
You can search for credit card verifications associated to a payment method token.
- Node
const stream = gateway.creditCardVerification.search((search) => {
search.paymentMethodToken().is("theToken");
});Billing Address
- Node
const stream = gateway.creditCardVerification.search((search) => {
search.billingAddressDetailsPostalCode().is("12345");
});Created At
- Node
const stream = gateway.creditCardVerification.search((search) => {
search.createdAt().between("12/15/07 17:00", "12/17/07 17:00");
});Note
Time zones specified in the time value will be respected in the search; if you do not specify a time zone, the search will default to the time zone associated with your gateway account. Results will always be returned with time values in UTC.