# Example Billing Flows with Stripe

You have the option to either:&#x20;

* Create custom checkouts using Stripe Elements - this allows for greater flexibility and customization of the payment form, or&#x20;
* Utilize Stripe-hosted Checkouts - where Stripe manages the entire checkout experience for you.&#x20;

Both methods involve incorporating the Sphere API to calculate taxes, ensuring accurate tax rates are applied during the checkout process.

<table data-view="cards"><thead><tr><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-type="content-ref"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td><strong>Stripe Elements</strong></td><td><a href="/pages/QVGfPAnfH9vmRTIoTZ7n">/pages/QVGfPAnfH9vmRTIoTZ7n</a></td><td><a href="/pages/QVGfPAnfH9vmRTIoTZ7n">/pages/QVGfPAnfH9vmRTIoTZ7n</a></td><td data-object-fit="cover"><a href="/files/lrcqDpweC07eNTYzY40X">/files/lrcqDpweC07eNTYzY40X</a></td></tr><tr><td><strong>Stripe-hosted Checkout</strong></td><td><a href="/pages/hjw2DdayxQyLPDKOBVcY">/pages/hjw2DdayxQyLPDKOBVcY</a></td><td><a href="/pages/hjw2DdayxQyLPDKOBVcY">/pages/hjw2DdayxQyLPDKOBVcY</a></td><td><a href="/files/1AjU2YAYFqnEY9HJhbAK">/files/1AjU2YAYFqnEY9HJhbAK</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.getsphere.com/features/integrations/api/example-billing-flows-with-stripe.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
