Payments
Video coming soon
The payments video is on the way. In the meantime, this lesson covers the live way to take payments in DYPAI today.
Integrate payments so your application can charge customers. The live path uses the generic Stripe workflow node with your own Stripe keys (BYOK), so all charging logic runs server-side and your secrets stay out of the frontend.
The live path: Stripe node + BYOK credentials
Add your Stripe credentials
In your project, go to Build → Credentials → Add new and create a Stripe credential with your Stripe secret key. To verify incoming events, also add a Stripe Webhook credential with your webhook signing secret. These are stored encrypted (Fernet, per-project) and decrypted only at execution time — never exposed to the browser.
Build a payment endpoint
In Build → API, create an endpoint and add the Stripe node to its workflow (for example, to create a Checkout Session or a PaymentIntent). The node uses the Stripe credential you added; it runs on the server, so the secret key never reaches the client.
Handle the webhook
Create a second endpoint with a Webhook trigger so Stripe can notify you when a payment succeeds. Verify the event signature using the Stripe Webhook credential, then update your database (mark the order paid, unlock a feature, etc.).
Test before going live
Use Stripe test mode keys and a test card to run the full flow end to end before switching to live keys.
Keep secrets server-side
Never put your Stripe secret key in a Frontend (Build) variable — those are baked into the client bundle. Charging logic belongs in an endpoint using the Stripe credential. For other runtime secrets, use Backend Secrets (Ship → Frontend → Variables), referenced as ctx.secrets.X.
Coming soon: DYPAI Payments (1-click Stripe Connect)
Coming soon A 1-click embedded Stripe Connect experience — "DYPAI Payments" — is planned for Pro+ projects, so non-technical users can accept one-time and subscription payments without wiring nodes by hand. The backend exists, but there's no dashboard UI yet, so use the Stripe-node path above for now.
What you'll learn
- Adding Stripe and Stripe Webhook credentials under Credentials
- Charging from a server-side endpoint with the Stripe node
- Verifying webhooks and keeping secrets out of the frontend
- Testing in Stripe test mode before going live
Done
You’ve completed the Building your first app track. Return to the tutorials overview or explore the rest of the docs.