Braintree.CreditCardVerification (Braintree v0.12.0)
Manage credit card verifications.
For additional reference see: https://developers.braintreepayments.com/reference/response/credit-card-verification/ruby
Link to this section Summary
Functions
Convert a map into a CreditCardVerification struct.
To search for credit card verifications, pass a map of search parameters.
Link to this section Types
Specs
t() :: %Braintree.CreditCardVerification{
amount: String.t(),
avs_error_response_code: String.t(),
avs_postal_code_response_code: String.t(),
avs_street_address_response_code: String.t(),
billing: Braintree.Address.t(),
created_at: String.t(),
credit_card: Braintree.CreditCard.t(),
currency_iso_code: String.t(),
cvv_response_code: String.t(),
gateway_rejection_reason: String.t(),
id: String.t(),
merchant_account_id: String.t(),
processor_response_code: String.t(),
processor_response_text: String.t(),
risk_data: map(),
status: String.t()
}
Link to this section Functions
Link to this function
new(params)
Convert a map into a CreditCardVerification struct.
Example
verification = Braintree.CreditCardVerification.new(%{"credit_card_card_type" => "Visa"})
Link to this function
search(params, opts \\ [])
Specs
search(map(), Keyword.t()) :: {:ok, t()} | {:error, Braintree.ErrorResponse.t()}
To search for credit card verifications, pass a map of search parameters.
Example:
search_params = %{amount: %{min: "10.0", max: "15.0"},
status: ["approved", "pending"]}= Braintree.CreditCardVerification.search(search_params)