Conekta::PaymentMethodGeneralRequest

October 11, 2024 ยท View on GitHub

Properties

NameTypeDescriptionNotes
expires_atIntegerMethod expiration date as unix timestamp[optional]
monthly_installmentsIntegerHow many months without interest to apply, it can be 3, 6, 9, 12 or 18[optional]
typeStringType of payment method
token_idString[optional]
payment_source_idString[optional]
cvcStringOptional, It is a value that allows identifying the security code of the card. Only for PCI merchants[optional]
contract_idStringOptional id sent to indicate the bank contract for recurrent card charges.[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::PaymentMethodGeneralRequest.new(
  expires_at: 1677196303,
  monthly_installments: null,
  type: card,
  token_id: tok_2897348234,
  payment_source_id: src_2tLkkyfMPh6v7pFry,
  cvc: 123,
  contract_id: S781317595,
  customer_ip_address: 0.0.0.0
)