Credit Card Verification
Credit Card Verification: Search
For operators available on search fields, see the search fields page.
- PHP
$collection = $gateway->creditCardVerification->search([
BraintreeCreditCardVerificationSearch::id()->is('the_verification_id'),
]);
foreach($collection as $verification) {
echo $verification->status;
}
Parameters
'createdAt'
range'creditCardCardType'
multipleThe type of credit card verified. Possible values:
"American Express"
"Discover"
"Maestro"
"JCB"
"MasterCard"
"UnionPay"
"Visa"
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'customerId'
text'id'
text'ids'
multipleExamples
Customer Details
- PHP
$collection = $gateway->creditCardVerification()->search([
BraintreeCreditCardVerificationSearch::customerEmail()->is("smith@example.com"),
BraintreeCreditCardVerificationSearch::customerId()->is("cust1234"),
]);
See search fields for a list of available operators. They allow you to do nice things like this:
- PHP
$collection = $gateway->creditCardVerification()->search([
BraintreeCreditCardVerificationSearch::customerEmail()->endsWith('example.com'),
]);
Credit Card Details
- PHP
$collection = $gateway->creditCardVerification()->search([
BraintreeCreditCardVerificationSearch::creditCardCardholderName()->is("Tom Smith"),
BraintreeCreditCardVerificationSearch::creditCardExpirationDate()->is("05/2012"),
BraintreeCreditCardVerificationSearch::creditCardNumber()->startsWith("4111"),
BraintreeCreditCardVerificationSearch::creditCardNumber()->endsWith("1111"),
BraintreeCreditCardVerificationSearch::creditCardCardType()->is(BraintreeCreditCard::VISA),
BraintreeCreditCardVerificationSearch::creditCardExpirationDate()->is("02/16"),
]);
Payment Methods
You can search for credit card verifications associated to a payment method token.
- PHP
$collection = $gateway->creditCardVerification()->search([
BraintreeCreditCardVerificationSearch::paymentMethodToken()->is('the_token'),
]);
Billing Address
- PHP
$collection = $gateway->creditCardVerification()->search([
BraintreeCreditCardVerificationSearch::billingAddressDetailsPostalCode()->is("12345"),
]);
Created At
- PHP
$collection = $gateway->creditCardVerification()->search([
BraintreeCreditCardVerificationSearch::createdAt()->between("12/15/07 17:00", "12/17/07 17:00"),
]);
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.