Blog / How to Set Up UPI AutoPay Subscriptions on Shopify

How to Set Up UPI AutoPay Subscriptions on Shopify

Step-by-step setup for UPI AutoPay subscriptions on a Shopify store in India: connect Razorpay or Cashfree, add the subscribe button, and run a test mandate.

How to Set Up UPI AutoPay Subscriptions on Shopify

To take UPI AutoPay subscriptions on Shopify, you need three things: a store that sells in rupees and is based in India, a Razorpay or Cashfree account with recurring UPI payments switched on, and a subscription app that can register UPI mandates and turn each debit into a Shopify order.

This guide walks through the setup with Bee Subscriptions, which is listed on the Shopify App Store as “UPI Subscriptions & Loyalty”. (Disclosure: Bee Apps is built by our team at Capaxe Labs.) If you’re still deciding whether UPI subscriptions make sense for your store, start with our guide to selling subscriptions on Shopify in India.


What You Need Before You Start

  • An Indian store. Your Shopify store’s currency must be INR and its country India. Bee only shows the UPI gateways to stores that match both.
  • A payment gateway account with UPI AutoPay switched on. On Razorpay, Recurring Payments must be activated on your account. Raise a request with Razorpay support if it isn’t. On Cashfree, UPI AutoPay isn’t self-serve: ask your account manager to activate it on both your sandbox and production accounts. It needs commercial approval, so start this first.
  • A subscription plan. At least one product needs a subscription option for customers to pick.
  • A Bee plan that includes UPI AutoPay. UPI is not on every plan. In Bee, open Settings → Integrations. If the Razorpay and Cashfree cards show as locked, your plan doesn’t include UPI yet and the card links you to upgrade.

You’ll copy a few keys between dashboards, so keep your gateway dashboard open in another tab.


Step 1: Install Bee Subscriptions and Create a Plan

Install the app from the Shopify App Store listing and open it from your Shopify admin.

Then create a subscription plan and add products to it. For each plan you choose:

  • Delivery frequency: weekly, monthly, or a custom interval.
  • Discount: a percentage off, a fixed amount off, or a fixed price.
  • Billing: pay per delivery, or prepaid, where one payment covers several deliveries.
  • Minimum and maximum cycles, if you want a lock-in period or a fixed end.

Build the discount into the plan itself. Discount codes can’t be applied to automatic UPI debits, because the debit never passes through a checkout where a code could be entered.


Step 2: Connect Razorpay

In Bee, go to Settings → Integrations and open the Razorpay UPI AutoPay card.

  1. In Razorpay, go to Settings → API Keys and copy your Key ID and Key secret into the card.
  2. Bee generates a webhook secret for you. Copy it. Don’t type your own; a single typo here silently stops orders from being created.
  3. In Razorpay, go to Settings → Webhooks and add a new webhook. Paste the webhook URL shown on the Bee card, and paste the secret you just copied.
  4. Subscribe the webhook to these events:
    • payment.captured
    • payment.failed
    • token.confirmed
    • token.rejected
    • token.paused
    • token.resumed
    • token.cancelled
  5. Save in Razorpay, then save the card in Bee.

The payment.* events tell Bee when money arrives or a debit fails. The token.* events tell it when a customer’s mandate changes, such as when they cancel it from their UPI app. If the token.* events aren’t offered when you create the webhook, Recurring Payments isn’t active on your Razorpay account yet.

Or Connect Cashfree

To use Cashfree instead, open the Cashfree UPI AutoPay card.

  1. In Cashfree, go to Developers → API Keys and copy your App ID and Secret key into the card.
  2. Pick the environment: sandbox while testing, production when you go live.
  3. In Cashfree, go to Developers → Webhooks and add the webhook URL shown on the Bee card.
  4. Enable these five events: subscription payment success, subscription payment failed, subscription payment cancelled, subscription auth status, and subscription status changed.

Cashfree signs its webhooks with your secret key, so there’s no separate webhook secret to copy.


Step 3: Check That the Webhook Is Verified

The gateway card shows one of three states:

StatusWhat it meansWhat to do
Webhook not verified yetBee hasn’t received a signed eventSend a test event from the gateway, or make a test payment
Webhook verifiedEvents are arriving and the signature matchesNothing. You’re set
Webhook secret mismatchEvents arrive but the signature failsCopy the secret from Bee again and paste it into the gateway’s webhook

Don’t skip this. Bee creates the paid Shopify order when the gateway confirms a payment through this webhook. If the webhook isn’t verified, money can reach your gateway account without an order showing up in Shopify.


Step 4: Add the UPI Subscribe Button to Product Pages

UPI subscriptions start from the product page, through a theme app block.

  1. In Shopify, go to Online Store → Themes → Customize.
  2. Open your product template and click Add block.
  3. Under Apps, pick UPI Subscribe Button.
  4. Place it under your subscription plan selector, then save.

The block’s settings let you change:

  • Button label. The default is “Subscribe with UPI AutoPay”.
  • Popup title and the hint shown before a shopper picks a plan.
  • Consent text. The default reads: “You authorize an auto-debit via UPI AutoPay for this subscription. Cancel anytime from your UPI app or account.” Edit it to match your own terms.
  • Colours, font, text size, corner radius, and whether the button runs full width.

The button stays inactive until the shopper selects a subscription plan, so one-time purchases still go through your normal checkout.


Step 5: Run a Test Subscription

Keep your gateway in test mode (Razorpay test keys or Cashfree sandbox) and subscribe to a low-priced product yourself. Here’s what should happen:

  1. The popup asks for a delivery address and shows your Shopify shipping rates.
  2. You review the amount and the consent text, then hand off to the gateway.
  3. You approve the mandate, which a real customer does in their UPI app with their UPI PIN.
  4. The first payment is taken straight away.
  5. A paid order appears in Shopify, with shipping included, and a new subscription contract appears in Bee.

For a prepaid plan, the first delivery ships right away and the later ones are held, then released on their due dates.

If the order doesn’t appear, check the webhook status from Step 3 first. That’s the cause most of the time.


What Your Customers See

Here’s the flow from the shopper’s side once you’re live:

  1. They pick a subscription plan on the product page and tap the UPI button.
  2. They enter their address, choose a shipping option, and read the consent text.
  3. They approve the mandate in their UPI app.
  4. They get an order confirmation for the first delivery.
  5. Before each renewal, they get a pre-debit notification, then the debit runs and a new order is created.

Customers manage the subscription from their Shopify customer account, where they can pause, resume, or cancel it. They can also cancel the mandate from their UPI app. Either way, Bee stops debiting and the subscription ends.


Go-Live Checklist

  • Gateway switched to live keys, and the webhook shows Webhook verified again on the live account
  • Consent text matches your terms and cancellation policy
  • Shipping rates set up for the regions you deliver to
  • One full test subscription done end to end
  • Your FAQ or policy page explains how to cancel: from the account page or the UPI app
  • Someone on your team owns the failed UPI payments page in Bee

Limits to Know Before You Launch

  • One product per UPI subscription. The button subscribes to the product it sits on. Bundles aren’t available over UPI yet.
  • No discount codes on automatic debits. Put the subscriber discount in the plan.
  • Checkout links don’t work with UPI. Bee’s shareable checkout links go through Shopify checkout, not a UPI mandate.
  • Failed debits get three more tries. Bee retries every 3 days, up to 3 times. If all of them fail, the subscription is paused (not cancelled) and the customer gets an email asking them to sort out the payment.

The rules for mandates themselves (debit limits, notification timing, cancellations) come from RBI and NPCI, not from Shopify or your app. Our guide to UPI AutoPay rules for subscription brands covers them.


Need a Hand?

Most stores finish this setup themselves. If you want someone to set up the plans, the gateway, and the theme for you, or you’re moving subscribers over from another platform, our team builds Shopify subscription systems for Indian and global brands.

Install Bee Subscriptions from the Shopify App Store to get started.

WhatsApp