Conekta::PaymentMethodCardRequest

August 21, 2025 ยท View on GitHub

Properties

NameTypeDescriptionNotes
typeStringType of payment method
cvcStringCard security code
exp_monthStringCard expiration month
exp_yearStringCard expiration year
nameStringCardholder name
numberStringCard number
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::PaymentMethodCardRequest.new(
  type: card | cash | spei | bnpl | pay_by_bank,
  cvc: 198,
  exp_month: 12,
  exp_year: 2025,
  name: John Doe,
  number: 4242424242424242,
  customer_ip_address: 0.0.0.0
)