|
StripeKit 0.1.1
Stripe integration toolkit for C++
|
The entry point for talking to Stripe. More...
#include <Client.h>
Public Member Functions | |
| virtual | ~StripeClient ()=default |
| Destroys the client instance. | |
| virtual Customers & | customers ()=0 |
| Returns the customer operations. | |
| virtual Checkout & | checkout ()=0 |
| Returns the Checkout operations. | |
| virtual Subscriptions & | subscriptions ()=0 |
| Returns the subscription operations. | |
| virtual BillingPortal & | billing_portal ()=0 |
| Returns the billing portal operations. | |
The entry point for talking to Stripe.
Operations are grouped the way Stripe's own API reference groups them, so checkout().sessions().create_async() corresponds to Stripe's "Create a Checkout Session" endpoint.
Obtain one from an adapter's factory function, such as stripekit::drogon::make_stripe_client(). One client is enough for the whole application: it is safe to share across threads and reuses connections to Stripe, so creating one per request only adds latency.
|
virtualdefault |
Destroys the client instance.
|
pure virtual |
Returns the customer operations.
Implemented in stripekit::StripeApiClient.
|
pure virtual |
Returns the Checkout operations.
Implemented in stripekit::StripeApiClient.
|
pure virtual |
Returns the subscription operations.
Implemented in stripekit::StripeApiClient.
|
pure virtual |
Returns the billing portal operations.
Implemented in stripekit::StripeApiClient.