Returns a collection of CreditCardVerification response objects.

For operators available on search fields, see the search fields page.

C♯
var request = new CreditCardVerificationSearchRequest().
    Id.Is("the_verification_id");

ResourceCollection<CreditCardVerification> collection = gateway.CreditCardVerification.Search(request);

foreach (CreditCardVerification verification in collection)
{
    Console.WriteLine(verification.Status);
}
Parameters
BillingAddressDetailsPostalCode text

The postal code on the billing address used for the credit card verification.

CreatedAt range

The date/time at which the credit card verification was created.

CreditCardCardType multiple

The type of credit card verified. Possible values:

  • "American Express"
  • "Discover"
  • "Maestro"
  • "JCB"
  • "MasterCard"
  • "UnionPay"
  • "Visa"
CreditCardCardholderName text

The cardholder name in the credit card verification.

CreditCardExpirationDate text

The expiration date of the credit card verified.

CreditCardNumber text

The 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.

CustomerEmail text

The customer's email address associated with the credit card verification.

CustomerId text

A string value representing an existing customer in your Vault that is associated with the credit card verification.

Id text

The ID of the verification.

Ids multiple

The list of verification IDs to search for.

PaymentMethodToken text

The payment method token for the credit card verification.

Examples

Customer Details

C♯
var request = new CreditCardVerificationSearchRequest().
    CustomerEmail.Is("smith@example.com").
    CustomerId.Is("cust1234");

ResourceCollection<CreditCardVerification> collection = gateway.CreditCardVerification.Search(request);

See search fields for a list of available operators. They allow you to do nice things like this:

C♯
var request = new CreditCardVerificationSearchRequest().
    CustomerEmail.EndsWith("example.com");

ResourceCollection<CreditCardVerification> collection = gateway.CreditCardVerification.Search(request);

Credit Card Details

C♯
var request = new CreditCardVerificationSearchRequest().
  CreditCardCardholderName().Is("Patrick Smith").
  CreditCardExpirationDate().Is("05/2012").
  CreditCardNumber().StartsWith("4111").
  CreditCardNumber().EndsWith("1111").
  CreditCardCardType().Is(Braintree.CreditCard.Visa).
  CreditCardExpirationDate().Is("02/16");

ResourceCollection<CreditCardVerification> collection = gateway.CreditCardVerification.Search(request);

Payment Methods

You can search for credit card verifications associated to a payment method token.

C♯
var request = new CreditCardVerificationSearchRequest().
    PaymentMethodToken.Is("the_token");

ResourceCollection<CreditCardVerification> collection = gateway.CreditCardVerification.Search(request);

Billing Address

C♯
var request = new CreditCardVerificationSearchRequest().
    BillingAddressDetailsPostalCode.Is("12345");

ResourceCollection<CreditCardVerification> collection = gateway.CreditCardVerification.Search(request);

Created At

C♯
DateTime fromDate = new DateTime(2007, 12, 15, 15, 17, 00);
DateTime toDate = new DateTime(2007, 12, 17, 15, 17, 00);
var request = new CreditCardVerificationSearchRequest().
    CreatedAt.Between(fromDate, toDate);

ResourceCollection<CreditCardVerification> collection = gateway.CreditCardVerification.Search(request);
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.

See also