Conekta::PaymentMethodCard

October 11, 2024 ยท View on GitHub

Properties

NameTypeDescriptionNotes
typeString[optional]
objectString
account_typeStringAccount type of the card[optional]
auth_codeString[optional]
brandStringBrand of the card[optional]
contract_idStringId sent for recurrent charges.[optional]
countryStringCountry of the card[optional]
exp_monthStringExpiration month of the card[optional]
exp_yearStringExpiration year of the card[optional]
fraud_indicatorsArray<Object>[optional]
issuerStringIssuer of the card[optional]
last4StringLast 4 digits of the card[optional]
nameStringName of the cardholder[optional]
customer_ip_addressStringOptional field used to capture the customer's IP address for fraud prevention and security monitoring purposes[optional]

Example

require 'conekta'

instance = Conekta::PaymentMethodCard.new(
  type: null,
  object: payment_source,
  account_type: Credit,
  auth_code: 867372,
  brand: visa,
  contract_id: S781317595,
  country: MX,
  exp_month: 02,
  exp_year: 2026,
  fraud_indicators: null,
  issuer: BANAMEX,
  last4: 4242,
  name: Fulanito Perez,
  customer_ip_address: 0.0.0.0
)