Clip
Utilities for clip
Tags
Table of Contents
Methods
- getCheckout() : mixed
- Desc: Checkout method para checar el status del enlace de pago.
- getTransaction() : mixed
- Desc: Obtiene los detalle de una transacción.
- requestPay() : mixed
- Desc: Solicitud de pago a CLIP.
- requestRefund() : mixed
- Desc: Solicita un reembolso a CLIP.
Methods
getCheckout()
Desc: Checkout method para checar el status del enlace de pago.
public
static getCheckout(string $payment_request_id) : mixed
Notes: n/a,
Ref: https://developer.clip.mx/reference/checkpaymentlinkstatusv1
Date: 2025-07-31, Version: v0.2507.01
Example: n/a
Parameters
- $payment_request_id : string
getTransaction()
Desc: Obtiene los detalle de una transacción.
public
static getTransaction(string $receipt_no) : mixed
Notes: n/a,
Ref: https://developer.clip.mx/reference/transaction
Date: 2025-07-31, Version: v0.2507.01
Example: n/a
Parameters
- $receipt_no : string
Tags
requestPay()
Desc: Solicitud de pago a CLIP.
public
static requestPay(float $amount, array<string|int, mixed> $customerBilling, string $purchase_description[, string|null $customBaseURL = null ]) : mixed
Notes: n/a,
Ref: https://developer.clip.mx/reference/createnewpaymentlinkv1
Date: 2025-07-31, Version: v0.2507.01
Example: n/a
Parameters
- $amount : float
-
Monto a pagar
- $customerBilling : array<string|int, mixed>
-
Array clave valor obtenido del json string del campo
shipping_address - $purchase_description : string
-
Descripcion de la compra
- $customBaseURL : string|null = null
requestRefund()
Desc: Solicita un reembolso a CLIP.
public
static requestRefund(string $id, array{amount: float, reason: string} $data[, string $type = 'receipt' ]) : mixed
Notes: Debe de ser dentro de 180 días naturales contar con el balance igual o mayor al monto,
Ref: https://developer.clip.mx/reference/introduccion-api-de-reembolsos
Date: 2025-07-31, Version: v0.2507.01
Example: n/a
Parameters
- $id : string
- $data : array{amount: float, reason: string}
- $type : string = 'receipt'
-
'transaction'|'receipt'