Conekta::TransactionResponse

August 1, 2023 ยท View on GitHub

Properties

NameTypeDescriptionNotes
amountIntegerThe amount of the transaction.
chargeStringRandomly assigned unique order identifier associated with the charge.
created_atIntegerDate and time of creation of the transaction in Unix format.
currencyStringThe currency of the transaction. It uses the 3-letter code of the International Standard ISO 4217.
feeIntegerThe amount to be deducted for taxes and commissions.
idStringUnique identifier of the transaction.
livemodeBooleanIndicates whether the transaction was created in live mode or test mode.
netIntegerThe net amount after deducting commissions and taxes.
objectStringObject name, which is transaction.
statusStringCode indicating transaction status.
typeStringTransaction Type

Example

require 'conekta'

instance = Conekta::TransactionResponse.new(
  amount: 1000,
  charge: 5ee7ec58885a45585e6d9f8m,
  created_at: 1553273553,
  currency: MXN,
  fee: 560,
  id: 5ee7ec5b8dea41085erb7f9e,
  livemode: true,
  net: 440,
  object: transaction,
  status: pending,
  type: capture
)