{"id":5600,"date":"2025-09-03T12:24:24","date_gmt":"2025-09-03T12:24:24","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=5600"},"modified":"2026-11-02T02:45:49","modified_gmt":"2026-11-02T02:45:49","slug":"hostinger-ai-builder-agentic-mode-how-to-sell-subscriptions-with-stripe","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/hostinger-ai-builder-agentic-mode-how-to-sell-subscriptions-with-stripe\/","title":{"rendered":"Hostinger AI Builder: How to sell subscriptions with Stripe in agentic mode"},"content":{"rendered":"<p>Sell subscriptions using <a data-click-id=\"hgr-post-content-link-stripe\" href=\"\/support\/10968832-hostinger-ai-builder-agentic-mode-stripe-integration\/\">Stripe<\/a> in your <a data-click-id=\"hgr-post-content-link-hostinger-ai-builder\" href=\"\/ai-builder\">Hostinger AI Builder<\/a> agentic mode project. You can connect other third-party tools, but this guide focuses on Stripe.<\/p>\n<p>If you want to sell physical or digital products, we recommend using our built-in <a data-click-id=\"hgr-post-content-link-online-store-integration\" href=\"\/support\/12038921-hostinger-ai-builder-agentic-mode-integration-with-online-store\/\">online store integration<\/a>.<\/p>\n<h2 id=\"h-step-1-connect-your-domain\">Step 1 &#8211; Connect your domain<\/h2>\n<p>You\u2019ll need to have a custom domain connected to your project when creating a Stripe account, so connect it before continuing.<\/p>\n<ol>\n<li>Click <a data-click-id=\"hgr-post-content-link-publish\" href=\"\/support\/10506149-hostinger-ai-builder-agentic-mode-how-to-publish-your-app\/\"><strong>Publish<\/strong> <\/a>in the top-right corner.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-16050\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-19_12-45.png\/public\" alt=\"\" width=\"1907\" height=\"268\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-19_12-45.png\/w=1907,fit=scale-down 1907w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-19_12-45.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-19_12-45.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-19_12-45.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2026\/08\/2026-08-19_12-45.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1907px) 100vw, 1907px\" \/><\/li>\n<li>When you see the \u201cProject published\u201d message, click <strong>Get domain<\/strong>.<\/li>\n<li>Choose an existing domain or buy a new one.<\/li>\n<\/ol>\n<h2 id=\"h-step-2-set-up-the-database-for-your-project\"><b>Step 2 &#8211; Set up the database for your project<\/b><\/h2>\n<p><span style=\"font-weight: 400\">Hostinger AI Builder includes an integrated database that you can access directly from the editor using the <\/span><b>Data<\/b><span style=\"font-weight: 400\"> button. Your data dashboard will appear once you ask Hostinger AI Builder to add features that require data collection (e.g., user accounts or contact forms).<\/span><\/p>\n<p><span style=\"font-weight: 400\">You don&#8217;t need to connect any external services &#8211; simply describe what you need, and Hostinger AI Builder will set up the necessary database collections for you.<\/span><\/p>\n<blockquote><p><em><b>Message examples:<\/b><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Add user accounts to my project.<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Add a page with a contact form that has name, email, and message fields.<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Add a booking page with name, email, date, and time picker.<\/span><\/em><\/p><\/blockquote>\n<p><span style=\"font-weight: 400\">You can also manage your data manually through the <\/span><b>Data<\/b><span style=\"font-weight: 400\"> button in the editor. To view and manage live user data, you&#8217;ll need to publish your website first.<\/span><\/p>\n<h2 id=\"h-step-3-add-sign-up-log-in-functionality-to-your-project\">Step 3 &#8211; Add sign up \/ log in functionality to your project<\/h2>\n<p><span style=\"font-weight: 400\">With subscriptions, you&#8217;ll most likely also need to add user account creation functionality so the subscriptions you sell are connected to user accounts. We recommend adding sign-up \/ log-in functionality before connecting to Stripe.<\/span><\/p>\n<blockquote><p><em><b>Message example:<\/b><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Add sign-up and login flows to my project with secure authentication.<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">If you have already added it, you can ask AI to verify it&#8217;s properly set up.<\/span><\/em><\/p>\n<p><em><b>Message example:<\/b><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Check if sign-up and login flows are fully and securely integrated with the database. I plan to use Stripe for subscriptions, so ensure user accounts are properly managed.<\/span><\/em><\/p><\/blockquote>\n<h2 id=\"h-step-4-set-up-your-stripe-account-subscription\">Step 4 &#8211; Set up your Stripe account &amp; subscription<\/h2>\n<p>First, you\u2019ll need to create your Stripe account (or log in if you already have one) and set up the subscription product that you want to sell.<\/p>\n<ol>\n<li><strong>Create a Stripe account:<\/strong> If you haven&#8217;t already, <a data-click-id=\"hgr-post-content-link-sign-up-for-a-stripe-account\" href=\"https:\/\/dashboard.stripe.com\/register\" target=\"_blank\" rel=\"noopener\">sign up for a Stripe account<\/a>.\n<ul>\n<li>Once you create an account, you\u2019ll be redirected to Stripe Sandbox mode. This mode allows you to test Stripe integration before fully connecting it.<\/li>\n<li>If you don\u2019t have much experience with tools like Stripe, we recommend fully setting up your Stripe account from the start. To do that, press the \u201cSwitch to live account\u201d button in the top-right corner and continue creating your live Stripe account.<\/li>\n<\/ul>\n<\/li>\n<li><strong data-renderer-mark=\"true\">Create subscription:<\/strong>\n<ul>\n<li>Go to the <a data-click-id=\"hgr-post-content-link-product-catalog\" href=\"https:\/\/dashboard.stripe.com\/products\" target=\"_blank\" rel=\"noopener\">Product catalog<\/a> in your Stripe dashboard.<\/li>\n<li>Click <strong>+ Add a product<\/strong>.<\/li>\n<li>Give it a name (e.g., &#8220;Pro Plan&#8221;) and set a recurring price. For testing purposes, we recommend setting the price to 0 for now. This allows you to test the purchase flow without paying the subscription price. You can adjust the price later.<\/li>\n<li>After creating it, <strong>copy the Price ID<\/strong>. You can find it by opening your created product \u2192 click the 3-dots icon \u2192 click <strong>Copy price ID<\/strong> (it will look like <span style=\"color: #808080\"><code>price_...<\/code><\/span>). Copy and save it somewhere safe, you&#8217;ll need this later.<br \/>\n<img decoding=\"async\" class=\"alignnone size-medium wp-image-5602\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/09\/img1.png\/w=300,h=210,fit=scale-down\" alt=\"Hostinger Pro Plan pricing menu with Copy price ID option highlighted\" width=\"300\" height=\"210\" data-media-id=\"5602\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/09\/img1.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/09\/img1.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/09\/img1.png\/w=1010,fit=scale-down 1010w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/li>\n<\/ul>\n<\/li>\n<li><strong data-renderer-mark=\"true\">Copy Stripe API keys:<\/strong>\n<ol>\n<li>Go to the <a data-click-id=\"hgr-post-content-link-api-keys-page\" href=\"https:\/\/dashboard.stripe.com\/apikeys\" target=\"_blank\" rel=\"noopener\">API Keys page<\/a>.<\/li>\n<li>You will need two keys:\n<ol>\n<li><strong>Publishable key<\/strong>, which looks like <span style=\"color: #808080\"><code>pk_live_...<\/code><\/span><\/li>\n<li><strong>Secret key<\/strong>, which looks like <span style=\"color: #808080\"><code>sk_live_...<\/code><\/span>. This key is highly sensitive and shouldn\u2019t be shared with anyone. You\u2019ll add it to Secrets in Step 6.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h2 id=\"h-step-5-set-up-stripe-webhooks\">Step 5 &#8211; Set up Stripe webhooks<\/h2>\n<p>Webhooks are how Stripe communicates with your project&#8217;s API server.\u00a0They keep subscription statuses in sync (e.g., when a payment succeeds or fails).<\/p>\n<ol>\n<li><b>Ask AI to create a webhook endpoint:<\/b><span style=\"font-weight: 400\"> Hostinger AI Builder uses an Express API server to handle server-side logic. You&#8217;ll need to ask AI to create an API route that receives and verifies Stripe webhook events.<br \/>\n<\/span><b>Message example:<\/b> <i><span style=\"font-weight: 400\">Create an API route on the server that exposes an endpoint URL for handling Stripe webhooks. You can name it <\/span><\/i><i><span style=\"font-weight: 400\">stripe-webhook<\/span><\/i><i><span style=\"font-weight: 400\">.<\/span><\/i> <i><span style=\"font-weight: 400\">Don&#8217;t make any other changes to the project!<\/span><\/i><\/li>\n<li><strong>Create a Webhook endpoint in Stripe:<\/strong>\n<ul>\n<li>Go to the Webhooks section in Stripe<\/li>\n<li>Click + Add destination.<\/li>\n<li>In the first step, select Your account, and in the events section, select these events (you can search for them using the search field):\n<ul>\n<li><span style=\"color: #808080\"><code>checkout.session.completed<\/code><\/span><\/li>\n<li><span style=\"color: #808080\"><code>customer.subscription.updated<\/code><\/span><\/li>\n<li><span style=\"color: #808080\"><code>customer.subscription.deleted<\/code><\/span><\/li>\n<li>Once selected, press <strong>Continue<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li>In the next step, select <strong>Webhook endpoint<\/strong> and press <strong>Continue<\/strong>.<\/li>\n<li>In the next step, fill in these fields:\n<ul>\n<li><strong>Destination name<\/strong>: enter a name like &#8220;Subscription webhook&#8221;<\/li>\n<li><strong>Endpoint URL<\/strong>: enter your project&#8217;s domain followed by <code>\/api\/stripe-webhook<\/code>, for example <code>https:\/\/domain.tld\/api\/stripe-webhook<\/code>.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong data-renderer-mark=\"true\">Copy webhook signing secret:<\/strong>\n<ul>\n<li>After completing the steps above, Stripe will provide a <strong>signing secret<\/strong> (it looks like <span style=\"color: #808080\"><code>whsec_...<\/code><\/span>). You\u2019ll add it to Secrets in Step 6.<br \/>\n<img decoding=\"async\" class=\"alignnone size-medium wp-image-5604\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/09\/img2.png\/w=300,h=206,fit=scale-down\" alt=\"Stripe signing secret field highlighted in destination details\" width=\"300\" height=\"206\" data-media-id=\"5604\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/09\/img2.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2025\/09\/img2.png\/w=687,fit=scale-down 687w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<h2 id=\"h-step-6-save-stripe-keys-in-secrets\">Step 6 &#8211; <b>Save Stripe keys in Secrets<\/b><\/h2>\n<p>Save your Stripe secret key and webhook signing secret in Secrets, so they stay out of your project code and chat history.<\/p>\n<ol>\n<li>Open your AI Builder and go to the<strong> App menu \u2192 Secrets.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-24041\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-02_08-11.png\" alt=\"\" width=\"522\" height=\"856\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-02_08-11.png 522w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-02_08-11-183x300.png 183w\" sizes=\"(max-width: 522px) 100vw, 522px\" \/><br \/>\n<\/strong><\/li>\n<li>Click <strong>Add secret<\/strong>.<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-24042\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-02_08-11_1.png\" alt=\"\" width=\"895\" height=\"614\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-02_08-11_1.png 895w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-02_08-11_1-300x206.png 300w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-02_08-11_1-768x527.png 768w\" sizes=\"(max-width: 895px) 100vw, 895px\" \/><\/li>\n<li>Add a secret named <code>STRIPE_SECRET_KEY<\/code> for your Stripe secret key, and another named <code>STRIPE_WEBHOOK_SECRET<\/code> for your webhook signing secret.<\/li>\n<li>For each secret, enter a Test value, which the preview uses, and a Live value, which your published site uses. Enter your <code>sk_live_\u2026<\/code> key and <code>whsec_\u2026<\/code> signing secret as the Live values.<\/li>\n<\/ol>\n<p>If you paste your Stripe keys into the chat instead, a Security warning offers to store them as secrets. Click <strong>Add secrets<\/strong>, keep the names <code>STRIPE_SECRET_KEY<\/code> and <code>STRIPE_WEBHOOK_SECRET<\/code> in the Store secrets securely window, and click <strong>Add secrets<\/strong> again. If a secret with the same name already exists, edit it in Secrets instead of saving a new one.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-24079\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-02_09-35.png\" alt=\"\" width=\"393\" height=\"176\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-02_09-35.png 393w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-02_09-35-300x134.png 300w\" sizes=\"(max-width: 393px) 100vw, 393px\" \/><\/p>\n<p>See <a data-click-id=\"hgr-post-content-link-hostinger-ai-builder-how-to-store-api-keys-with-secrets-in-a\" href=\"https:\/\/www.hostinger.com\/support\/hostinger-ai-builder-how-to-store-api-keys-with-secrets-in-agentic-mode\/\">Hostinger AI Builder: How to store API keys with Secrets in agentic mode<\/a> for other details about Secrets.<\/p>\n<h2 id=\"h-step-7-connect-stripe-with-your-hostinger-ai-builder-project\">Step 7 &#8211; <b>Connect Stripe with your Hostinger AI Builder project<\/b><\/h2>\n<p><span style=\"font-weight: 400\">This is the final connection step. You&#8217;ll need to ask the AI to fully and securely connect your Stripe account to the subscription you created for your Hostinger AI Builder project.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Use the message below as a template \u2014 make sure to replace the placeholder values before sending:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Stripe product price ID, which looks like <\/span><b>price_&#8230;<\/b><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Stripe publishable key, which looks like <\/span><b>pk_live_&#8230;<\/b><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Replace <\/span><b>your_domain<\/b><span style=\"font-weight: 400\"> with your Hostinger AI Builder project domain.<\/span><\/li>\n<\/ul>\n<blockquote><p><em><b>Message example:<\/b><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">I want to securely integrate Stripe to sell subscriptions in my <\/span><span style=\"font-weight: 400\">Hostinger AI Builder<\/span><span style=\"font-weight: 400\"> project.<\/span><\/em><\/p>\n<p><em>I have already stored my Stripe keys in Secrets:<\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Secret key: <\/span><span style=\"font-weight: 400\">STRIPE_SECRET_KEY<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Webhook signing secret: <\/span><span style=\"font-weight: 400\">STRIPE_WEBHOOK_SECRET<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Step 1: Checkout session &amp; webhooks<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Create an API route on the server that handles Stripe checkout sessions. When a user starts the subscription purchase flow, securely create a Stripe Checkout session using my stored secret key and return the session URL for redirecting the user.<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">When creating the Stripe Checkout session, pass both <\/span><span style=\"font-weight: 400\">success_url<\/span><span style=\"font-weight: 400\"> and <\/span><span style=\"font-weight: 400\">cancel_url<\/span><span style=\"font-weight: 400\">. Make sure these URLs use my site&#8217;s domain: <\/span><b>your_domain<\/b><span style=\"font-weight: 400\">.<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Create a Stripe customer and save the generated <\/span><span style=\"font-weight: 400\">stripe_customer_id<\/span><span style=\"font-weight: 400\"> to the database.<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">For any updates received from the Stripe webhook, use the <\/span><span style=\"font-weight: 400\">stripe_customer_id<\/span><span style=\"font-weight: 400\"> to find and update the correct user record in database..<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Step 2: Subscription product<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Add my Stripe subscription product to the Hostinger AI Builder project.<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Stripe product price ID: <\/span><b>price_&#8230;<\/b><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Stripe publishable key: <\/span><b>pk_live_&#8230;<\/b><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Add an &#8220;Upgrade&#8221; button in the project that triggers the subscription purchase flow.<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Ensure the subscription is fully linked to the user database.<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Only users with an active subscription can access premium features.<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Step 3: Access control<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Instantly grant users premium access after purchase.<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Ensure subscription status is checked in real-time when users log in, create an account, or try to access premium features.<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Step 4: Security &amp; correctness<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Ensure the integration is secure and does not expose secret keys to the frontend.<\/span><\/em><\/p>\n<p><em><span style=\"font-weight: 400\">Handle all Stripe communication server-side via the API server.<\/span><\/em><\/p><\/blockquote>\n<h2 id=\"h-step-8-allow-users-to-manage-their-subscriptions\">Step 8 &#8211; Allow users to manage their subscriptions<\/h2>\n<p>Once you have a fully working subscription purchase flow, you can add Stripe&#8217;s customer portal, allowing users to manage their subscriptions (update payment methods, view invoices, cancel, etc.).<\/p>\n<ol>\n<li>Go to <a data-click-id=\"hgr-post-content-link-stripe-customer-portal-settings\" href=\"https:\/\/dashboard.stripe.com\/settings\/billing\/portal\" target=\"_blank\" rel=\"noopener\">Stripe Customer Portal settings<\/a>.<\/li>\n<li>Find the <strong>Launch customer portal with a link<\/strong> section.<\/li>\n<li>Click <strong>Activate link<\/strong> to enable the customer portal.<\/li>\n<li>Go back to Hostinger AI Builder and ask to integrate the Stripe Customer Portal into your project.<\/li>\n<\/ol>\n<p style=\"padding-left: 40px\"><strong><span style=\"color: #003366\"><em>Message example:<\/em><\/span><\/strong><\/p>\n<blockquote><p><i><span style=\"font-weight: 400\">Create a new API route on the server that securely generates a link to the Stripe Customer Portal for the logged-in user.<\/span><\/i><\/p>\n<p><i><span style=\"font-weight: 400\">Then, add a &#8220;Manage subscription&#8221; button to my project. This button should be visible only to paid users. Clicking it should redirect users to the Stripe Customer Portal, where they can manage their subscriptions.<\/span><\/i><\/p><\/blockquote>\n<h2 id=\"h-other-tips\">Other tips<\/h2>\n<ul>\n<li>Publish your project after making changes and test the subscription purchase flow by creating a new account on your project.<\/li>\n<li>You can find and manage all subscriptions on the <a data-click-id=\"hgr-post-content-link-stripe-customers-page\" href=\"https:\/\/dashboard.stripe.com\/customers\" target=\"_blank\" rel=\"noopener\">Stripe Customers page<\/a>. If you want to cancel subscription, select the user \u2192 in the <strong>Subscriptions<\/strong> section, click the 3-dots icon \u2192 click <strong>Cancel subscription<\/strong>.<\/li>\n<li>You can ask AI to hide the subscription purchase flow if the user already has one and add an indication showing that the user has a subscription.<\/li>\n<li>You can also ask AI to enable certain features of your project only for users with a subscription. For example, in a to-do list app, you could set a maximum number of tasks free users can create, and once they reach that limit, they\u2019d need to subscribe.<\/li>\n<\/ul>\n<h2 id=\"h-errors-or-bugs-fixing\">Errors or bugs fixing<\/h2>\n<p>If you encounter issues or notice bugs during or after the Stripe connection process, try asking AI to fix them by providing as much context as possible.<\/p>\n<p><strong>Example 1:<\/strong> If you get an error after trying to enter the subscription purchase flow, take a screenshot of the error, attach it to your message, and describe when it occurred and what the correct flow should be.<\/p>\n<p style=\"padding-left: 40px\"><span style=\"color: #003366\"><strong><em>Message example<\/em><\/strong><\/span><\/p>\n<p style=\"padding-left: 40px\"><span style=\"color: #003366\"><em>Clicking the \u201cUpgrade\u201d button throws an error (see attached screenshot). Clicking that button should redirect the user to Stripe for subscription purchase and then return them to my project with the account upgraded. Identify and fix the issue.<\/em><\/span><\/p>\n<p><strong>Example 2:<\/strong> If, after purchase, the user doesn\u2019t have a subscription, provide context about when the issue occurs and what the expected flow should be.<\/p>\n<p style=\"padding-left: 40px\"><strong><span style=\"color: #003366\"><em>Message example<\/em><\/span><\/strong><\/p>\n<p style=\"padding-left: 40px\"><span style=\"color: #003366\"><em>After completing the subscription purchase flow, users are redirected back to the project, but their subscription status is not updated, and premium features are not unlocked. Ensure the subscription is verified on return and the user is granted access to premium features immediately. Identify and fix the issue.<\/em><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sell subscriptions using Stripe in your Hostinger AI Builder agentic mode project.<\/p>\n","protected":false},"author":598,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[293],"tags":[],"class_list":["post-5600","post","type-post","status-publish","format-standard","hentry","category-ai-builder"],"hreflangs":[],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/5600","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/598"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=5600"}],"version-history":[{"count":17,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/5600\/revisions"}],"predecessor-version":[{"id":24084,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/5600\/revisions\/24084"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=5600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=5600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=5600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}