Skip to content

Payment Configuration

Quizora supports two payment gateways: Razorpay and Stripe. You can enable one or both.


Razorpay

Razorpay is recommended for platforms targeting India, Southeast Asia, and the Middle East.

Setup Steps

  1. Create a Razorpay account at razorpay.com
  2. Go to Settings → API Keys in your Razorpay Dashboard
  3. Generate a new API Key pair (Key ID + Key Secret)
  4. In Quizora: go to Admin → Settings → Payments → Razorpay
  5. Enter your Key ID and Key Secret
  6. Click Save

Live vs Test Mode

Razorpay provides separate keys for Test mode and Live mode. Use Test keys while setting up, and switch to Live keys before accepting real payments.


Stripe

Stripe is recommended for platforms targeting the US, Europe, and international markets.

Setup Steps

  1. Create a Stripe account at stripe.com
  2. In your Stripe Dashboard, go to Developers → API Keys
  3. Copy your Publishable key and Secret key
  4. For webhooks: go to Developers → Webhooks → Add Endpoint
    • Endpoint URL: https://yourdomain.com/api/stripe/webhook
    • Select events: payment_intent.succeeded, payment_intent.payment_failed
    • Copy the Signing Secret
  5. In Quizora: go to Admin → Settings → Payments → Stripe
  6. Enter Publishable Key, Secret Key, and Webhook Secret
  7. Click Save

Commission & Earnings

Platform Commission

You (the admin) can take a percentage of every quiz sale. Configure this in Admin → Settings → Payments → Commission Rate.

Example: Commission rate = 20%

  • Quiz price: ₹500
  • Platform earns: ₹100
  • Creator earns: ₹400

Creator Payouts

Creators accumulate earnings in a wallet balance. They can request a payout from Creator → Earnings → Request Payout.

You review and approve payout requests from Admin → Payouts.


Testing Payments

Before going live, test your payment flow using test cards:

Razorpay test card:

  • Card number: 4111 1111 1111 1111
  • Any future expiry, any CVV

Stripe test card:

  • Card number: 4242 4242 4242 4242
  • Any future expiry, any CVV

No Payment Gateway?

If you don't configure any payment gateway, Quizora still works — creators can only publish free quizzes. Paid quiz publishing is automatically unlocked once at least one gateway is configured.

Quizora — AI-Powered Quiz Platform