ApiDoc BACKEND

Clip

Utilities for clip

Tags
author

Gilberto Rodriguez de la Cruz

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

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
throws
InvalidConfigException
throws
Exception

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'


        
On this page

Search results