|
StripeKit 0.1.1
Stripe integration toolkit for C++
|
Creating customers, Checkout sessions (subscriptions and one-time payments), subscriptions, and billing portal sessions. More...
Classes | |
| struct | stripekit::CreateCustomerRequest |
| Describes the customer to create. More... | |
| struct | stripekit::CreateCheckoutSessionRequest |
| Describes the Checkout session to create. More... | |
| struct | stripekit::CreateBillingPortalSessionRequest |
| Describes the billing portal session to create. More... | |
| class | stripekit::Customers |
| Creates and retrieves Stripe customers. More... | |
| class | stripekit::CheckoutSessions |
| Creates Stripe-hosted Checkout sessions. More... | |
| class | stripekit::Checkout |
| Groups the Checkout operations. More... | |
| class | stripekit::Subscriptions |
| Retrieves and cancels Stripe subscriptions. More... | |
| class | stripekit::BillingPortalSessions |
| Creates billing portal sessions. More... | |
| class | stripekit::BillingPortal |
| Groups the billing portal operations. More... | |
| class | stripekit::StripeClient |
| The entry point for talking to Stripe. More... | |
| struct | stripekit::RequestOptions |
| Per-call settings accepted by every client operation. More... | |
Typedefs | |
| template<typename TResult> | |
| using | stripekit::CallbackResult = std::variant<TResult, std::exception_ptr> |
| Result passed to a completion callback: either the value, or the failure. | |
Creating customers, Checkout sessions (subscriptions and one-time payments), subscriptions, and billing portal sessions.
Start at StripeClient. It mirrors Stripe's own resource grouping, so customers(), checkout().sessions(), subscriptions(), and billing_portal().sessions() line up with the sections of Stripe's API reference. Checkout sessions support subscriptions and one-time payments; see CreateCheckoutSessionRequest.
| using stripekit::CallbackResult = std::variant<TResult, std::exception_ptr> |
Result passed to a completion callback: either the value, or the failure.
Use std::holds_alternative<std::exception_ptr>() to check which arrived, and std::rethrow_exception() to inspect a failure.
| TResult | Type produced when the operation succeeds. |