Creates Stripe-hosted Checkout sessions.
More...
#include <Client.h>
Creates Stripe-hosted Checkout sessions.
Reach an instance through StripeClient::checkout(). Checkout is a payment page Stripe hosts: create a session, redirect the customer to CheckoutSession::url, and Stripe collects the card details.
- See also
- https://docs.stripe.com/api/checkout/sessions
Definition at line 223 of file Client.h.
◆ CreateCompletion
Completion callback for the callback form of create().
Definition at line 226 of file Client.h.
◆ ~CheckoutSessions()
| virtual stripekit::CheckoutSessions::~CheckoutSessions |
( |
| ) |
|
|
virtualdefault |
Destroys the API instance.
◆ create_async()
Creates a Checkout session.
- Parameters
-
| request | Details of the session to create. |
| options | Per-request settings. Set an idempotency key so a retry cannot start a second subscription. |
- Returns
- A task producing the session, whose url is where the customer should be sent.
- Exceptions
-
◆ create()
Creates a Checkout session, reporting the result through a callback.
The callback is invoked exactly once, and may run on a different thread than the caller.
- Parameters
-
| request | Details of the session to create. |
| options | Per-request settings such as an idempotency key. |
| completion | Receives the created session or the failure. |
The documentation for this class was generated from the following file: