Payments and Stripe

There are two kinds of money on Kree8: the prepaid credits you buy to pay for building and running your projects, and the revenue your own app takes from its customers through your Stripe account. This guide covers both and explains how to take payments safely.

Available

Adding Kree8 credits from your account page, with a monthly plan or one-off top-ups, is available, with prices shown before you pay. The agent can also add Stripe Checkout and webhooks to the app you build: your project runs its own server code, and your Stripe keys are stored as server secrets through a secure form, never in the chat.

Your Kree8 credits vs your app’s revenue

Kree8 credits are what you spend. You add them at /platform/ using “Buy credits” next to your Balance, either with a monthly plan or as one-off top-ups (see pricing). Building with the agent and running your project draw from this balance, and when it runs out the studio pauses and shows you a link to buy more.

Your app’s revenue is what your customers pay you. It goes into your own Stripe account and is entirely separate from your Kree8 credits. Kree8 does not hold or pass through your customers’ payments, and you cannot pay for Kree8 credits from your Stripe balance or the other way round.

Preparing your Stripe account

  1. Create or sign in to Stripe. Use a Stripe account in your business’s name. Complete the business details and bank account in Stripe’s own dashboard — Kree8 never needs your banking information.
  2. Stay in test mode. Stripe gives every account a test mode with separate keys and fake card numbers. Build everything there first.
  3. Decide what you sell. Write down your products, prices, currency, and whether each is a one-off payment or a subscription. Tell the agent in plain words.
  4. Find your keys, but don’t share them in chat. In Stripe you will see a publishable key and a secret key. The secret key must only ever live in your project’s server settings.

Taking payments with Stripe Checkout

The usual approach is Stripe Checkout: your app’s server code creates a Checkout Session for what the customer is buying, then sends them to Stripe’s hosted payment page. Card details never touch your app, which keeps your security burden low.

Ask Kree8

“Add a ‘Buy now’ button to each product page. Use Stripe Checkout in test mode, created from server code, priced in GBP. After payment, send the customer to a thank-you page that shows their order number.”

Prices should be decided on the server, never taken from the page, so a visitor can’t change the amount they pay. The thank-you page is only a courtesy — reaching it does not prove payment.

Webhooks and reliable fulfilment

Stripe tells your app that a payment really succeeded by calling a webhook endpoint on your server with the event checkout.session.completed. Your app should fulfil orders (mark them paid, grant access, send a receipt email) only from this event.

  1. Ask for the endpoint. The agent adds a webhook handler to your app’s server code and tells you its web address.
  2. Register it in Stripe. In your Stripe dashboard, add that address as a webhook endpoint and select the checkout.session.completed event.
  3. Store the signing secret. Stripe shows a webhook signing secret for the endpoint. Store it as a server secret, not in chat.
  4. Verify every call. The handler must check Stripe’s signature with that secret and reject anything that fails.
  5. Fulfil once. Stripe may send the same event more than once. Record the Checkout Session id and skip any session already fulfilled, so retries never double-fulfil.
Ask Kree8

“Add a Stripe webhook for checkout.session.completed. Verify the signature with the signing secret, and make fulfilment idempotent using the Checkout Session id. Tell me the endpoint address to add in Stripe.”

Test mode first, then live

Run through real purchases in test mode using Stripe’s test cards, including a declined card and an abandoned checkout. Check that each successful test payment appears once in your app and once in Stripe. When you are happy, create a live webhook endpoint in Stripe, then ask the agent to switch to your live keys and live signing secret, stored the same way as before.

Go-live checklist

  • Business details, bank account and statement descriptor are complete in Stripe.
  • Prices and currency are set in server code and match what the page shows.
  • Live secret key and live webhook signing secret are stored as server secrets.
  • The live webhook endpoint is registered for checkout.session.completed.
  • Signature verification and idempotent fulfilment were tested with a repeated event.
  • Your site shows terms, a refund policy and contact details.
  • You made one small real purchase and refunded it.
  • Your Kree8 balance has room for the extra traffic.

Refunds, receipts and disputes

Handle refunds, receipts and disputes in your Stripe dashboard — Stripe can email receipts automatically. If your app should react to a refund (for example, removing access), ask the agent to handle the relevant Stripe event in the same verified, idempotent way. Payment problems are covered in Troubleshooting.