Credentials

Receiving payments (Stripe)

How to connect Stripe for payments, how to use test mode, and how access is granted automatically after a payment.

On this page

Without connecting Stripe, clicking "Buy now" won't work for your customers — it's like opening a store with no register.

Why you use your own Stripe account

Money your customers pay goes directly into your own Stripe account. We never touch it, take a cut, or pool funds.That also means payouts, reconciliation, and taxes are entirely yours to manage — we never have access to your money.

How to connect it (about 5 minutes)

  • Turn on two-factor authentication first: saving your payment keys requires a Google Authenticator code (changing payment settings means changing where money goes — this is intentional).Log in with an admin account, go to Admin → Settings → General settings → Security → "Two-factor (required for payment changes)," and scan the QR code with Google Authenticator to turn it on.Write down the 10 backup recovery codes you're given (you'll need them if you lose your phone). Skip this step and you'll be blocked when you try to save at the end.
  • Sign up at https://dashboard.stripe.com (you'll need to complete business/individual identity verification before you can receive real money)
  • Developers → API keys
  • Copy two values:
  • Secret key (starts with sk_live_... for live payments; sk_test_... is for testing)
  • Publishable key (starts with pk_live_...)
  • Enter them in Admin → Settings → Site info → My Credentials → Stripe

Test mode vs. live mode

  • Starts with sk_test_ = test mode. You can use Stripe's test card numbers to walk through the whole flow, but you won't receive real money
  • Starts with sk_live_ = live mode. Real charges happen

We recommend running through the whole flow with test keys first (placing an order → receiving the confirmation email → access being granted automatically), and switching to live keys once you've confirmed everything works.Test card number: 4242 4242 4242 4242. Use any future expiry date and any 3-digit CVC.

Set up the payment callback (webhook) — required

After a customer pays, Stripe needs to call us back before access is granted, the confirmation email is sent, or any automation runs. Skip this step, and the money comes in but the customer gets nothing.

  • Ask your AI to call get_my_credentials — the Stripe section includes webhookUrl (your callback address) and the list of events to select
  • In your Stripe dashboard: Developers → Webhooks → Add endpoint, and enter webhookUrl as the address
  • Select every event under requiredEvents (mandatory) and recommendedEvents (recommended: transaction records, chargeback alerts); if you're selling memberships or subscription products, also select subscriptionEvents
  • After saving, copy the signing secret (whsec_...) and have the AI call set_my_credentials({stripeWebhookSecret:"whsec_..."})

Miss one event, and whatever it was supposed to trigger simply never happens — with no error. Your site health check reads your Stripe endpoint and checks every event one by one, and lists exactly which ones are missing.

What happens automatically after a payment

If you've set up automation rules (have your AI call apply_automation_template to generate them in one go):

  • Payment succeeds → access is granted automatically / they're added to the community / a confirmation email is sent
  • Refund → access is revoked automatically / they're removed from the community / a refund tag is added

Without this set up, you'd have to do all of it by hand — and at any real volume, you will make mistakes.

FAQ

The checkout page won't open / shows an error: check whether you've entered the Publishable key — the Secret key alone isn't enough.Payment received but access wasn't granted: check whether your automation rule is enabled, and whether the product has entitlementType configured.Want to accept Alipay / WeChat Pay: Stripe supports Alipay (needs to be turned on in your Stripe dashboard); WeChat Pay needs a separate integration.

Last updated: October 7, 2026
Still stuck? Just ask

Write your question — we look in the docs first, and hand it to AI support if the answer is not there.

If you have connected an AI, you can ask it directly — it reads these same docs, and it can make the change for you.Or email us at support@dlxai.ai.
We use essential cookies; "Accept" also records device traits to prevent abuse. Cookie Policy