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

  1. Go to dashboard.stripe.com
  2. Click DevelopersAPI Keys
  3. Copy your Secret Key (sk_test_... for testing, sk_live_... for production)

Step 2: Connect Stripe to TinyCommand

  1. Go to Build → App Authorizations in the platform
  2. Click + Add Connection
  3. Select Stripe
  4. Paste your Secret Key
  5. Click Save

Step 3: Add a payment field to your form

  1. Open your form in the builder
  2. Add a Stripe Payment field
  3. Configure:
SettingWhat to enter
AmountFixed price (e.g., 49.99) or reference a calculated field
CurrencyUSD, EUR, GBP, INR, etc.
DescriptionWhat the payment is for (shown on receipt)
Success messageShown after payment succeeds

Step 4: Test with test mode

  1. Ensure you're using a test API key (sk_test_...)
  2. Publish the form
  3. Fill out the form and reach the payment step
  4. Use test card: 4242 4242 4242 4242 (any future expiry, any CVC)
  5. Submit, then verify the payment appears in your Stripe test dashboard

Step 5: Go live

  1. Replace the test key with your live key (sk_live_...) in App Authorizations
  2. Republish the form
  3. Real payments will now be processed

Razorpay setup

Similar process:

  1. Get your Razorpay Key ID and Secret from the Razorpay Dashboard
  2. Add the connection in App Authorizations
  3. Add a Razorpay Payment field to your form
  4. Configure amount (INR) and description
  5. 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:

  1. Add quantity and item fields
  2. Add a Calculated Field: {{quantity}} * {{price_per_item}}
  3. 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.