Skip to content

Checkout

Bakhtarian edited this page May 14, 2026 · 2 revisions

Checkout

A checkout configuration defines a reusable, hosted checkout session on Whop — the pricing, plan, and presentation a buyer sees when purchasing. The SDK creates and retrieves these configurations and returns them as typed DTOs.

SDK access

$client->checkouts // Matchable\Whop\Resource\CheckoutResource

The underlying API path is checkout_configurations.

Endpoints

create(array $data): CheckoutConfigurationResponse

HTTP POST checkout_configurations
Does Creates a new checkout configuration.
Parameters $data — configuration attributes (e.g. plan, redirect URLs, metadata).
Returns Matchable\Whop\Dto\Checkout\CheckoutConfigurationResponse (typed DTO). A response missing a required field raises MissingArgumentsException.

get(string $id): CheckoutConfigurationResponse

HTTP GET checkout_configurations/{id}
Does Retrieves a single checkout configuration by ID.
Parameters $id — the checkout configuration ID.
Returns Matchable\Whop\Dto\Checkout\CheckoutConfigurationResponse (typed DTO). A response missing a required field raises MissingArgumentsException.

Example

$checkout = $client->checkouts->create([
    'plan_id' => 'plan_...',
]);

Reference

Official Whop documentation: https://docs.whop.com

Clone this wiki locally