Objeto Cargo
El objeto Cargo contiene toda la información relacionada al pago de un orden. Este objeto pertenece al objeto orden.
Tipo | Descripción | |
---|---|---|
id | string | Identificador único del cargo asignado al azar. |
created_at | integer (32-bit unix timestamp) | Fecha de creación del cargo. |
currency | string | Divisa con la cual se realizará el cobro. Utiliza el código de 3 letras del Estándar Internacional ISO 4217. |
amount | integer | Cantidad a pagar. |
reference_id | string (opcional) | Cadena donde el usuario puede enviar información adicional para la orden. |
monthly_installments | integer | Meses sin intereses a los que se diferirá el cargo. Conekta ofrece 3, 6, 9 y 12 meses sin intereses. |
livemode | boolean | true: Modo de producción. false: Modo de prueba. |
payment_method | hash | Método de pago del cargo. |
object | string | Clase del objeto. En este caso, "charge". |
status | string | Status del cargo. |
fee | integer | Cantidad de la comisión en centavos. |
order_id | string | Id de la orden a la que pertenece el cargo |
{
id: "589026bbedbb6e56430016ad",
object: "charge",
status: "pending_payment",
amount: 35000,
fee: 1279,
reference_id: "Tracking number: 54323456",
order_id: "ord_2fw8EWJusiRrxdPzT",
livemode: false,
created_at: 1597069683,
currency: "MXN",
payment_method: {
service_name: "OxxoPay",
object: "cash_payment",
type: "oxxo",
expires_at: 1599661683,
store_name: "OXXO",
reference: "93345678901234"
}
}
{
"id": "589026bbedbb6e56430016ad",
"object": "charge",
"status": "pending_payment",
"amount": 35000,
"fee": 1279,
"reference_id": "Tracking number: 54323456",
"order_id": "ord_2fw8EWJusiRrxdPzT",
"livemode": false,
"created_at": 1597069683,
"currency": "MXN",
"payment_method": {
"service_name": "OxxoPay",
"object": "cash_payment",
"type": "oxxo",
"expires_at": 1599661683,
"store_name": "OXXO",
"reference": "93345678901234"
}
}
{
"id": "589026bbedbb6e56430016ad",
"object": "charge",
"status": "pending_payment",
"amount": 35000,
"fee": 1279,
"reference_id": "Tracking number: 54323456",
"order_id": "ord_2fw8EWJusiRrxdPzT",
"livemode": false,
"created_at": 1597069683,
"currency": "MXN",
"payment_method": {
"service_name": "OxxoPay",
"object": "cash_payment",
"type": "oxxo",
"expires_at": 1599661683,
"store_name": "OXXO",
"reference": "93345678901234"
}
}
{
"id": "589026bbedbb6e56430016ad",
"object": "charge",
"status": "pending_payment",
"amount": 35000,
"fee": 1279,
"reference_id": "Tracking number: 54323456",
"order_id": "ord_2fw8EWJusiRrxdPzT",
"livemode": false,
"created_at": 1597069683,
"currency": "MXN",
"payment_method": {
"service_name": "OxxoPay",
"object": "cash_payment",
"type": "oxxo",
"expires_at": 1599661683,
"store_name": "OXXO",
"reference": "93345678901234"
}
}
{
"id": "589026bbedbb6e56430016ad",
"object": "charge",
"status": "pending_payment",
"amount": 35000,
"fee": 1279,
"reference_id": "Tracking number: 54323456",
"order_id": "ord_2fw8EWJusiRrxdPzT",
"livemode": false,
"created_at": 1597069683,
"currency": "MXN",
"payment_method": {
"service_name": "OxxoPay",
"object": "cash_payment",
"type": "oxxo",
"expires_at": 1599661683,
"store_name": "OXXO",
"reference": "93345678901234"
}
}
{
id = 589026bbedbb6e56430016ad,
object = charge,
status = pending_payment,
amount = 35000,
fee = 1279,
reference_id = Tracking number: 54323456,
order_id = ord_2fw8EWJusiRrxdPzT,
livemode = false,
created_at = 1597069683,
currency = MXN,
payment_method = {
service_name = OxxoPay,
object = cash_payment,
type = oxxo,
expires_at = 1599661683,
store_name = OXXO,
reference = 93345678901234
}
}
{
"id": "589026bbedbb6e56430016ad",
"object": "charge",
"status": "pending_payment",
"amount": 35000,
"fee": 1279,
"reference_id": "Tracking number: 54323456",
"order_id": "ord_2fw8EWJusiRrxdPzT",
"livemode": false,
"created_at": 1597069683,
"currency": "MXN",
"payment_method": {
"service_name": "OxxoPay",
"object": "cash_payment",
"type": "oxxo",
"expires_at": 1599661683,
"store_name": "OXXO",
"reference": "93345678901234"
}
}
{
"id": "589026bbedbb6e56430016ad",
"object": "charge",
"status": "pending_payment",
"amount": 35000,
"fee": 1279,
"reference_id": "Tracking number: 54323456",
"order_id": "ord_2fw8EWJusiRrxdPzT",
"livemode": false,
"created_at": 1597069683,
"currency": "MXN",
"payment_method": {
"service_name": "OxxoPay",
"object": "cash_payment",
"type": "oxxo",
"expires_at": 1599661683,
"store_name": "OXXO",
"reference": "93345678901234"
}
}