Skip to main content
Access the service via $orqex->checkouts(). Each method returns a typed Checkout whose payment property holds the bound PaymentIntent.

Create

$checkout = $orqex->checkouts()->create([
    'amount'        => 50,
    'currency'      => 'XOF',
    'description'   => 'Order #1024',
    'return_url'    => 'https://shop.example.com/return',
    'webhook_url'   => 'https://shop.example.com/webhooks/orqex',
    'customer'      => ['email' => '[email protected]', 'first_name' => 'Ama', 'last_name' => 'Mensah'],
    'customization' => ['brand' => 'My Store', 'color' => '#000000', 'lang' => 'en'],
]);

header('Location: ' . $checkout->url);

Retrieve & expire

$checkout = $orqex->checkouts()->retrieve('cs_123');

$checkout->status;       // "open" | "completed" | "expired" | "cancelled"
$checkout->payment->id;  // the bound payment intent

$orqex->checkouts()->expire('cs_123');

Methods

MethodReturns
create(array $params, $opts = null)Checkout
retrieve(string $checkoutId, $opts = null)Checkout
expire(string $checkoutId, $opts = null)Checkout
See the Checkout concept for the hosted flow.