How to Set Up COD to Prepaid Conversion with Razorpay in ShopAgain

Follow these steps to configure Razorpay for COD to Prepaid conversions in ShopAgain and create a WhatsApp template with a dynamic URL button.


Step 1: Update Permissions



Go to your ShopAgain Shopify Settings:

- Open this link: https://app.shopagain.io/shopify-settings.
- Update the required permissions as prompted.


Step 2: Configure Razorpay Webhook



Log in to your Razorpay Dashboard.

Go to the Webhook Settings page:

- Open this link: https://dashboard.razorpay.com/app/website-app-settings/webhooks.
Create a new webhook:

- Add the following webhook URL:

https://webhooks.shopagain.io/v1/razorpay

- Check the event `payment.authorized` to enable it.
Save the webhook.


Step 3: Generate API Keys in Razorpay



Go to the API Keys section in your Razorpay Dashboard:

- Open this link: https://dashboard.razorpay.com/app/website-app-settings/api-keys.
Generate New API Keys:

- Copy the Key ID and Key Secret.


Step 4: Add Razorpay API Keys in ShopAgain



Go to your ShopAgain Payment Settings:

- Open this link: https://app.shopagain.io/account/payments.
Add the Razorpay API Key ID and Key Secret.


Step 5: Set Up WhatsApp Template for COD to Prepaid Conversion



While creating the WhatsApp template:

- Type of Action: Select `Visit URL`.
- Button Text: Enter a text like `Pay Now`.
- Select URL Type: Choose `Dynamic`.
- Map Website URL: Use `CodToPrepaidUrl`.

The setup will look like this:

WhatsApp Button Setup

Save and submit your template.

Updated on: 15/12/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!