Verificar un cargo existente

Verifica y obtén los detalles de un cargo existente, el único campo requerido es el payment_id que acompaña a cada orden de pago.

Nota: Este endpoint funciona solamente con la Llave Privada.

GET /v1/charges/{payment_id}

Ejemplo

curl https://api.compropago.com/v1/charges/ch_fe92a1a5-abec-49e3-877c-5024c1464dc3 \
-u sk_live_xxxxxxxxxxxx:pk_live_xxxxxxxxxxxxxx

Respuesta

{
  "id": "ch_ee707f2b-422f-4352-96c3-2b992889cc5f",
  "short_id": "94f177",
  "type": "charge.pending",
  "object": "charge",
  "livemode": false,
  "created_at": 1503012697,
  "accepted_at": null,
  "expires_at": 10000021599,
  "paid": false,
  "amount": 1232.45,
  "currency": "mxn",
  "refunded": false,
  "fee": 38.74,
  "fee_details": {
    "amount": 38.74,
    "currency": "mxn",
    "type": "compropago_fee",
    "application": null,
    "amount_refunded": 0,
    "tax": 6.2
  },
  "order_info": {
    "order_id": "12123",
    "order_name": "asd",
    "order_price": 1232.45,
    "payment_method": "cash",
    "store": "SEVEN_ELEVEN",
    "country": "MX",
    "image_url": "",
    "success_url": "",
    "exchange": {
      "rate": 1,
      "request": 1502994696,
      "exchange_id": null,
      "final_amount": 1232.45,
      "origin_amount": 1232.45,
      "final_currency": "MXN",
      "origin_currency": "MXN"
    }
  },
  "customer": {
    "customer_name": "Eduardo",
    "customer_email": "asd@asd.com",
    "customer_phone": "1234567890"
  },
  "api_version": "1.1"
}
Campos requeridos
payment_id string ID único del pago