Skip to main content

How to Integrate Razorpay Magic Checkout with Spur

Recover abandoned carts automatically by connecting Razorpay Magic Checkout with Spur's WhatsApp automation. This guide shows you how.

Updated over 3 weeks ago

Step 1: Set Up the Magic Checkout Flow in Spur

  1. Go to your Spur dashboard

  2. Navigate to Automations from the left sidebar

  3. Click "+ New Flow" in the top right

  4. Search for "magic" in the template search box

  5. Select "Magic Abandoned Checkout" template (For Razorpay Magic Checkout Users)

  6. Create the flow.

The template comes pre-configured with:

  • Webhook trigger to receive cart abandonment data

  • Automated messaging sequence

  • Default 10% discount code creation

Step 2: Copy Your Webhook URL

Once the flow is created, you'll see the automation workflow with a webhook trigger on the left side.

  1. Click on the webhook trigger block (it will show "Webhook" as the trigger type)

  2. Click the "Copy" button next to the webhook URL

  3. Keep this URL handy - you'll need it for Razorpay setup

The URL will look something like: https://api.spurnow.com/profiles/XXXX/workflows/XXXXX/webhooks
​

You can also see the complete automation flow with the messaging sequence, including delay timers and the discount code creation block.
​

Step 3: Configure Razorpay Magic Checkout

Navigate through Razorpay's interface following these exact steps:

  1. Go to Payments: Click on "Payments" in the main navigation

  2. Select Magic Checkout: Find "Magic Checkout" in the right sidebar

  3. Access Settings: Click on "Setup & Settings" in the horizontal menu

  4. Choose Checkout Setup: Select "Checkout Setup" from the side menu

  5. Find Webhook Section: Scroll down until you see "Enable the abandoned webhook to track"

  6. Add Webhook URL: Paste the Spur webhook URL you copied earlier

  7. Save Settings: Click save to activate the integration
    ​
    ​

Step 4: Customize Your Discount Settings

The default template creates 10% discount codes automatically. To change this:

  1. Return to your Spur flow

  2. Find the "Create Discount Code" action block

  3. Click to edit and change from 10% to your preferred amount (5%, 15%, etc.)

  4. Update the message text to match your new discount percentage

Step 5: Enable and Test Your Flow

  1. Turn on the flow by toggling it to active status

  2. Test the integration by abandoning a checkout on your store

  3. Check Spur logs to verify webhook data is being received

  4. Verify WhatsApp messages are being sent correctly

Flow Sequence Overview

Once active, here's what happens automatically:

  1. Customer abandons cart on your Razorpay-powered checkout

  2. Razorpay sends webhook to Spur with cart details

  3. WhatsApp message sent with personalized cart recovery message

  4. Follow-up sequence continues

Your Razorpay Magic Checkout integration with Spur is now ready to recover abandoned carts automatically through WhatsApp messaging.

Did this answer your question?