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.
- Ruby
collection = gateway.verification.search do |search|
search.id.is "the_verification_id"
end
collection.each do |verification|
puts verification.status
end;;
Parameters
The postal code on the billing address used for the credit card verification.
:created_atrangeThe date/time at which the credit card verification was created.
:credit_card_card_typemultipleThe 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.
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.
:customer_emailtextThe customer's email address associated with the credit card verification.
:customer_idtextA 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
- Ruby
search_results = gateway.verification.search do |search|
search.customer_email.is "[email protected]"
search.customer_id.is "cust1234"
endSee search fields for a list of available operators. They allow you to do nice things like this:
- Ruby
search_results = gateway.verification.search do |search|
search.customer_email.ends_with "example.com"
endCredit Card Details
- Ruby
search_results = gateway.verification.search do |search|
search.credit_card_cardholder_name.is "Patrick Smith"
search.credit_card_expiration_date.is "05/2012"
search.credit_card_number.starts_with "4111"
search.credit_card_number.ends_with "1111"
search.credit_card_card_type.is Braintree::CreditCard::CardType::Visa
search.credit_card_expiration_date.is "02/16"
endPayment Methods
You can search for credit card verifications associated to a payment method token.
- Ruby
search_results = gateway.verification.search do |search|
search.payment_method_token.is "the_token"
endBilling Address
- Ruby
search_results = gateway.verification.search do |search|
search.billing_address_details_postal_code.is "12345"
endCreated At
- Ruby
search_results = gateway.verification.search do |search|
search.created_at.between "12/15/07 17:00", "12/17/07 17:00"
endNote
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.