Returns a collection of Braintree_CreditCardVerification response objects.

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

PHP
$collection = Braintree_CreditCardVerification::search([
    Braintree_CreditCardVerificationSearch::id()->is('the_verification_id'),
]);

foreach($collection as $verification) {
    echo $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.

'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

PHP
$collection = Braintree_CreditCardVerification::search([
  Braintree_CreditCardVerificationSearch::customerEmail()->is("smith@example.com"),
  Braintree_CreditCardVerificationSearch::customerId()->is("cust1234"),
]);

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

PHP
$collection = Braintree_CreditCardVerification::search([
  Braintree_CreditCardVerificationSearch::customerEmail()->endsWith('example.com'),
]);

Credit Card Details

PHP
$collection = Braintree_CreditCardVerification::search([
  Braintree_CreditCardVerificationSearch::creditCardCardholderName()->is("Tom Smith"),
  Braintree_CreditCardVerificationSearch::creditCardExpirationDate()->is("05/2012"),
  Braintree_CreditCardVerificationSearch::creditCardNumber()->startsWith("4111"),
  Braintree_CreditCardVerificationSearch::creditCardNumber()->endsWith("1111"),
  Braintree_CreditCardVerificationSearch::creditCardCardType()->is(Braintree_CreditCard::VISA),
  Braintree_CreditCardVerificationSearch::creditCardExpirationDate()->is("02/16"),
]);

Payment Methods

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

PHP
$collection = Braintree_CreditCardVerification::search([
  Braintree_CreditCardVerificationSearch::paymentMethodToken()->is('the_token'),
]);

Billing Address

PHP
$collection = Braintree_CreditCardVerification::search([
  Braintree_CreditCardVerificationSearch::billingAddressDetailsPostalCode()->is("12345"),
]);

Created At

PHP
$collection = Braintree_CreditCardVerification::search([
  Braintree_CreditCardVerificationSearch::createdAt()->between("12/15/07 17:00", "12/17/07 17:00"),
]);
note

Timezones specified in the time value will be respected in the search. Results will always be returned with time values in UTC.

See also

Still Have Questions?

If you can’t find an answer, give us a call at 877.434.2894 or contact our Support team