Step 1: Set Up the Magic Checkout Flow in Spur
Go to your Spur dashboard
Navigate to Automations from the left sidebar
Click "+ New Flow" in the top right
Search for "magic" in the template search box
Select "Magic Abandoned Checkout" template (For Razorpay Magic Checkout Users)
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.
Click on the webhook trigger block (it will show "Webhook" as the trigger type)
Click the "Copy" button next to the webhook URL
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:
Go to Payments: Click on "Payments" in the main navigation
Select Magic Checkout: Find "Magic Checkout" in the right sidebar
Access Settings: Click on "Setup & Settings" in the horizontal menu
Choose Checkout Setup: Select "Checkout Setup" from the side menu
Find Webhook Section: Scroll down until you see "Enable the abandoned webhook to track"
Add Webhook URL: Paste the Spur webhook URL you copied earlier
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:
Return to your Spur flow
Find the "Create Discount Code" action block
Click to edit and change from 10% to your preferred amount (5%, 15%, etc.)
Update the message text to match your new discount percentage
Step 5: Enable and Test Your Flow
Turn on the flow by toggling it to active status
Test the integration by abandoning a checkout on your store
Check Spur logs to verify webhook data is being received
Verify WhatsApp messages are being sent correctly
Flow Sequence Overview
Once active, here's what happens automatically:
Customer abandons cart on your Razorpay-powered checkout
Razorpay sends webhook to Spur with cart details
WhatsApp message sent with personalized cart recovery message
Follow-up sequence continues
Your Razorpay Magic Checkout integration with Spur is now ready to recover abandoned carts automatically through WhatsApp messaging.