Integration Steps
Integrate your Shopify store with Razorpay Direct - Credit Card plugin and start accepting credit card payments directly on the checkout page.
Follow the steps given below to integrate credit card payment with your Shopify store directly on the checkout page using Razorpay Direct - Credit Card plugin.
Before you proceed:
- Create a .
- Create a .
- Understand the process.
- Generate the from the Dashboard. To go live with the integration and start accepting real payments, generate Live Mode API Keys and replace them in the integration.
-
Install
from the Shopify app store.Handy Tips
If you have multiple stores, select the store for which you want to install the Razorpay Direct - Credit Card.
-
You will be redirected to the Shopify home screen. Click Install app.
-
You will be redirected to a landing page. Click I am an existing user and log in to your Razorpay account.
Handy Tips
- Ensure you log in with owner credentials to connect Razorpay with Shopify successfully.
- If you are a new Razorpay user, click I am new to Razorpay and for an account.
-
Click Activate Razorpay Direct - Credit Card on the activation screen on your Shopify Dashboard.
Razorpay Direct - Credit Card Plugin now appears as a payment method on your Shopify Store.

Handy Tips
- Webhooks is auto-configured. You need to verify if webhooks are enabled on your .
- The
order.paid
,payment.authorized
,refund.processed
andrefund.failed
events are auto-configured. You do not have to configure it on the Dashboard.
After the integration is complete, you need to ensure that the integration is working as expected. You can start accepting actual payments from your customers once the test mode transaction is successful.
Follow the steps given below to test a transaction in test mode:
- Log in to your .
- Navigate to Settings → Payments.
- Click Manage on the Razorpay Direct - Credit Card app.
- At the bottom of the page, select the Enable test mode check box and click Save.
- On your Shopify store, add an item to your cart and click Buy it now.
- Fill in your contact and shipping details and click Continue to shipping.
- Select the Shipping method and click Continue to payment.
- Select Credit card and enter the card details.
- Click Pay now and complete the order.
Follow these steps before taking the integration live:
You can perform an end-to-end simulation of funds flow in the Test Mode. Once confident that the installation and integration is working as expected, switch to the Live Mode and start accepting payments from customers.
To switch from Test Mode to Live Mode:
- Log in to your .
- Navigate to Settings → Payments.
- On the Supported payment methods section, click Manage on the Razorpay Direct - Credit Card app.
- At the bottom of the page, clear the Enable test mode check box and click Save.
You can now start accepting actual payments on your Shopify store.
To initiate refunds using Shopify store:
- Log in to the .
- After a payment is completed, navigate to Orders.
- Select the order you want to initiate a refund.
- Click Refund.
- Select the quantity of the item and click Refund.
- You can either issue a full refund or a partial refund.
- For a full refund, enter the entire payment amount.
- For a partial refund, enter a value lesser than the payment amount.
- You can verify the refund status from the Dashboard. Navigate to Transactions → Refunds and check if a Refund Id is generated for the relevant Payment Id.
Was this page helpful?