Dec 02, 2025
Ariffud M. & Dainius K.
8min Read
Stripe is a payment platform that lets you accept online payments and manage subscriptions securely.
If you’ve built a web app with Hostinger Horizons and want to monetize it – whether through premium content, memberships, or recurring plans – Stripe offers a simple yet powerful solution.
This guide will walk you through integrating Stripe with your Hostinger Horizons project. By the end, you’ll know how to connect your Stripe account, create a subscription product, and start accepting payments directly from users.
Connecting Stripe with Hostinger Horizons web app builder gives you a fast, secure way to accept payments without writing backend code.
You can offer subscriptions, manage recurring billing, and deliver a seamless checkout experience directly in your web app.
With Hostinger Horizons handling the front end and Stripe managing payments, you get a complete setup that’s easy to launch and scales as your project grows.
Whether you’re running a paid membership platform or selling digital products, this integration helps you monetize your web app safely and efficiently.

Before adding Stripe to your web app, you should connect it to a custom domain. This will make your app easier to access and help build user trust.
For this tutorial, we’ll implement a recurring subscription model similar to Netflix. Users will pay a fixed monthly fee to access premium content.
If you need other models like one-time purchases or pay-what-you-want donations, don’t worry – we’ll cover those later in this guide.
To start accepting payments, you’ll need a Stripe account:


With your account ready, enable client-only integration in Stripe to power your app’s checkout page. This setup lets you accept payments without a backend server – ideal for no-code platforms like Hostinger Horizons.


Next, set up a subscription-based product that users will pay for on a recurring basis.
Feel free to adjust the name, price, and billing period to fit your app’s needs.


Store this ID – you’ll need it to complete the Stripe integration in Hostinger Horizons.
Now that you’ve added a product, grab your Stripe publishable key to connect the payment flow.

Click the key to copy it. You’ll use this and the price ID to link your web app with Stripe.
After collecting your Stripe details, open your Hostinger Horizons-built web app so the AI tool can implement the payment setup.

I want to integrate Stripe into my web app so that users can access my premium content. Here are my Stripe credentials: – price ID: [your_price_id] – publishable key: [your_publishable_key]

Here’s a sample prompt you can use:
Please add logic so that when users click on premium content, they're asked to sign in. After signing in, show a "Subscribe to Access" button that opens the Stripe checkout using the price ID above. After payment, redirect them back to the content page.
Your web app should now be ready to accept test payments. To verify everything, start by publishing your project.
You can’t test the Stripe integration using the preview pane in Hostinger Horizons, because the live preview runs within a sandboxed iframe that restricts redirections for security.

If the payment succeeds, you’ll be redirected to the content library.
The Subscribe to Access button will change to Read Now, confirming that access has been granted. You’ll also see the Premium Access Active badge, meaning the subscription is active.

Once you’ve tested your web app, switch to live mode in Stripe to start accepting real payments.
Once your Stripe payment is active, the test card number will no longer work. Using real credit cards for testing will result in actual charges, so proceed carefully.


I've switched Stripe to live mode. Can you update my web app with the live price ID and publishable key? Here are the details: – price ID: [your_live_price_id] – publishable key: [your_live_publishable_key]
That’s it! You’ve successfully configured Stripe on Hostinger Horizons and are now ready to receive payments for your premium content.
While the current payment system is enough to process basic transactions, you can enhance it further using Stripe webhooks.
Think of webhooks as a notification system: When something happens in Stripe, such as a successful payment, Stripe sends a message to your server. This is more efficient than the basic payment process you have now.
To set up webhooks, you’ll need to add some backend code. You should also connect your web app to a Supabase database.
Supabase will handle user data storage, provide server endpoints to receive Stripe webhook notifications, and offer a built-in authentication system.
Here’s a comparison of the flows:
User pays → returns to the success page → the frontend checks the page and updates the stored data
User pays → Stripe confirms the payment → Stripe notifies Supabase → Supabase updates the database
The latter is more reliable and scalable because it ensures proper data storage, verifies payments, and automates updates.
If you’re interested in implementing webhooks, follow the official Supabase documentation on handling Stripe webhooks.
We’ve demonstrated how to integrate Stripe to charge users regularly, either monthly or yearly, to access premium content.
But you can also set up different payment models. Below are two examples:
Per-item purchases
If you sell individual items or digital products, such as ebooks or courses, you can create a product for each item in Stripe and set a one-time payment pricing model to process single transactions.
After that, note down each product’s price ID and share it with Hostinger Horizons so it can update the payment process for each item. Here’s an example prompt:
I want to set up Stripe payments for the following products. Here are their price IDs: – price_abc123... for "Product 1" – price_xyz789... for "Product 2"
Donations/pay-what-you-want
If you’re a creator, run a nonprofit platform, or manage a donation-based web app, you can let users choose how much they want to donate to support your cause.
In Stripe, go to Payment Links → New. Select Customers choose what to pay as the payment type. After configuring the other settings, click Create Link.

Once done, copy the generated link and share it with Hostinger Horizons. If you haven’t created a donation button yet, use a prompt like this:
I want to add a Support Us button that lets users contribute any amount. Please link it to [the Stripe donation link].
When integrating Stripe into your web app, follow these security tips to minimize vulnerabilities and prevent unauthorized access:
Even with proper setup, you may encounter issues when setting up Stripe on your web app. Here are some common problems and how to fix them:
Using Stripe gives you a secure, scalable, and no-code-friendly way to accept payments and manage subscriptions.
In this article, we’ve explored how to integrate Stripe into your Hostinger Horizons-built web app. Here’s a quick recap of the steps:
As your app grows, you can add different pricing models, explore other Stripe features like coupons, and customize the checkout page’s appearance. Doing so will help you deliver more value to your users and manage payments more efficiently.
Join our Discord channel for more tips and inspiration on making the most of Hostinger Horizons. Connect with the community, get expert advice, and stay updated on the latest features!