Payment Setup Guide
Collect payments directly in your forms using Stripe or Razorpay. This guide walks through the complete setup.
Stripe setup (step by step)
Step 1: Get your Stripe API key
- Go to dashboard.stripe.com
- Click Developers → API Keys
- Copy your Secret Key (
sk_test_...for testing,sk_live_...for production)
Step 2: Connect Stripe to TinyCommand
- Go to Build → App Authorizations in the platform
- Click + Add Connection
- Select Stripe
- Paste your Secret Key
- Click Save
Step 3: Add a payment field to your form
- Open your form in the builder
- Add a Stripe Payment field
- Configure:
| Setting | What to enter |
|---|---|
| Amount | Fixed price (e.g., 49.99) or reference a calculated field |
| Currency | USD, EUR, GBP, INR, etc. |
| Description | What the payment is for (shown on receipt) |
| Success message | Shown after payment succeeds |
Step 4: Test with test mode
- Ensure you're using a test API key (
sk_test_...) - Publish the form
- Fill out the form and reach the payment step
- Use test card:
4242 4242 4242 4242(any future expiry, any CVC) - Submit, then verify the payment appears in your Stripe test dashboard
Step 5: Go live
- Replace the test key with your live key (
sk_live_...) in App Authorizations - Republish the form
- Real payments will now be processed
Razorpay setup
Similar process:
- Get your Razorpay Key ID and Secret from the Razorpay Dashboard
- Add the connection in App Authorizations
- Add a Razorpay Payment field to your form
- Configure amount (INR) and description
- Test with Razorpay's test mode
Handling payment results in workflows
Form Submission (with payment) →
If-Else ({{trigger.payment_status}} === "succeeded") →
Success:
→ Create Record (log order)
→ Send Email (receipt to customer)
→ Send Slack (#orders)
Failed:
→ Send Email (payment failed, retry link)
→ Log error
Dynamic pricing
Instead of a fixed amount, use a Calculated Field to compute the total:
- Add quantity and item fields
- Add a Calculated Field:
{{quantity}} * {{price_per_item}} - Set the Stripe Payment amount to reference the calculated field
Warning
NEVER use live Stripe/Razorpay keys during testing. Test mode keys look similar but don't process real charges. Double-check the key prefix before going live.
Note
TinyCommand is PCI DSS compliant for payment collection. Card data never touches TinyCommand servers. It goes directly to Stripe/Razorpay's secure infrastructure.