Conekta::ChargesDataResponse

April 10, 2025 ยท View on GitHub

Properties

NameTypeDescriptionNotes
amountInteger
channelChargeResponseChannel[optional]
created_atInteger
currencyString
customer_idString[optional]
descriptionString[optional]
device_fingerprintString[optional]
failure_codeString[optional]
failure_messageString[optional]
idStringCharge ID
livemodeBooleanWhether the charge was made in live mode or not
objectString
order_idStringOrder ID
paid_atIntegerPayment date[optional]
payment_methodChargeResponsePaymentMethod[optional]
reference_idStringReference ID of the charge[optional]
refundsChargeResponseRefunds[optional]
statusStringCharge status

Example

require 'conekta'

instance = Conekta::ChargesDataResponse.new(
  amount: 4321,
  channel: null,
  created_at: 1676386026,
  currency: MXN,
  customer_id: null,
  description: Payment from order,
  device_fingerprint: 6FR3chaU4Y1nGAW5NAGd1rcjAKa142Ba,
  failure_code: suspected_fraud,
  failure_message: Este cargo ha sido declinado porque el comportamiento del comprador es sospechoso.,
  id: 63efa757cf65380001aec040,
  livemode: false,
  object: charge,
  order_id: ord_2tN73UdUSNrYRPD9r,
  paid_at: 1676390742,
  payment_method: null,
  reference_id: ref_2tN73UdUSNrYRPD9r,
  refunds: null,
  status: pending_payment
)