> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-881012b3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Integration Steps

> Integrate your Shopify store with Razorpay Direct - Credit Card plugin and start accepting credit card payments directly on the checkout page.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
</div>

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.

<CardGroup cols={3}>
  <Card title="1. Build Integration" href="/docs/payments/ecommerce-plugins/razorpay-direct-credit-card#1-build-integration">
    Install and configure the Razorpay Direct - Credit Card plugin.
  </Card>

  <Card title="2. Test Integration" href="/docs/payments/ecommerce-plugins/razorpay-direct-credit-card#2-test-integration">
    Test the integration by making a test payment.
  </Card>

  <Card title="3. Go-Live Checklist" href="/docs/payments/ecommerce-plugins/razorpay-direct-credit-card#3-go-live-checklist">
    Check the go-live checklist.
  </Card>
</CardGroup>

Before you proceed:

* Create a [Razorpay account](https://dashboard.razorpay.com/signup).
* Create a [Shopify account](https://www.shopify.in).
* Understand the [payment flow](/docs/payments/payment-gateway/how-it-works) process.

## 1. Build Integration

<AccordionGroup>
  <Accordion title="Install the plugin">
    1. **Install** [Razorpay Direct - Credit Card](https://apps.shopify.com/razorpay-cc-prod) from the Shopify app store.
           <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-store-cc-plugin-install.jpg" alt="Activate Razorpay Direct - Credit Card plugin" width="800" />

    <Info>
      **Handy Tips**

      If you have multiple stores, select the store for which you want to install the Razorpay Direct - Credit Card.
    </Info>

    2. You will be redirected to the Shopify home screen. Click **Install app**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-cc-installapp.jpg" alt="Shopify install app" width="800" />

    3. You will be redirected to a landing page. Click **I am an existing user** and log in to your Razorpay account.
           <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-cc-auth.gif" alt="Shopify auth for existing Razorpay user" width="800" />

    <Info>
      **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 [set up](/docs/payments/set-up) an account.
    </Info>

    4. Click **Activate Razorpay Direct - Credit Card** on the activation screen on your Shopify Dashboard.
           <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-activate-cc-plugin.jpg" alt="Activate Razorpay Direct - Credit Card plugin" width="800" />

    Razorpay Direct - Credit Card Plugin now appears as a payment method on your Shopify Store.

    <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-cc-plugin-store.jpg" alt="Enabled credit card plugin on shopify store" width="800" />

    <Info>
      **Handy Tips**

      * Webhooks is auto-configured. You need to verify if webhooks are enabled on your [Dashboard](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card/troubleshooting-faqs#7-how-can-i-verify-if-webhooks-are).
      * The `order.paid`, `payment.authorized`, `refund.processed` and `refund.failed` events are auto-configured. You do not have to configure it on the Dashboard.
    </Info>
  </Accordion>
</AccordionGroup>

## 2. Test Integration

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.<br />

<AccordionGroup>
  <Accordion title="Test Transaction in Test Mode">
    Follow the steps given below to test a transaction in test mode:

    1. Log in to your [Shopify store](https://accounts.shopify.com/lookup?rid=f19e1541-cd24-4856-a398-156d2ed5d56f).
    2. Navigate to **Settings** → **Payments**.
    3. Click **Manage** on the **Razorpay Direct - Credit Card** app.
           <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-cc-test-navigation.jpg" alt="edit settings on the plugin to enable test mode" width="800" />
    4. At the bottom of the page, select the **Enable test mode** check box and click **Save**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-cc-enable-test-mode.jpg" alt="Enable test mode to test the flow" width="800" />
    5. On your Shopify store, add an item to your cart and click **Buy it now**.
    6. Fill in your **contact** and **shipping** details and click **Continue to shipping**.
    7. Select the **Shipping method** and click **Continue to payment**.
    8. Select **Credit card** and enter the card details.
    9. Click **Pay now** and complete the order.
           <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-cc-test.gif" alt="Test Razorpay Direct - Credit Card plugin" width="800" />
  </Accordion>

  <Accordion title="Verify Payment Status">
    You can track the payment status from the Razorpay Dashboard or poll our APIs.

    <Tabs>
      <Tab title="Verify Payment Status From Dashboard">
        1. Log in to the Dashboard and navigate to **Transactions** → **Payments**.
        2. Check if a `payment_ID` has been generated and note the status. In case of a successful payment, the status is marked as `captured`.

        <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-cc-verify-transactions.jpg" alt="Verify the transaction status from the Razorpay Dashboard" width="800" />
      </Tab>

      <Tab title="Poll APIs">
        [Poll Payment APIs](/docs/api/payments#fetch-multiple-payments) to check the payment status.
      </Tab>
    </Tabs>
  </Accordion>
</AccordionGroup>

## 3. Go-live Checklist

Follow these steps before taking the integration live:

<AccordionGroup>
  <Accordion title="Switch from Test Mode to Live Mode">
    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:

    1. Log in to your [Shopify store](https://accounts.shopify.com/lookup?rid=f19e1541-cd24-4856-a398-156d2ed5d56f).
    2. Navigate to **Settings** → **Payments**.
    3. On the **Supported payment methods** section, click **Manage** on the **Razorpay Direct - Credit Card** app.
    4. At the bottom of the page, clear the **Enable test mode** check box and click **Save**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-cc-live.jpg" alt="Disable test mode to start accepting payments from customers" width="800" />

    You can now start accepting actual payments on your Shopify store.
  </Accordion>
</AccordionGroup>

## Refunds

#### Initiate Refunds

To initiate refunds using Shopify store:

1. Log in to the [Shopify account](https://www.shopify.in).
2. After a payment is completed, navigate to **Orders**.
3. Select the order you want to initiate a refund.
   <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-cc-orders.jpg" alt="Select the order to initiate refund" width="800" />
4. Click **Refund**.
   <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-cc-refund.jpg" alt="Initiate refund" width="800" />
5. Select the quantity of the item and click **Refund**.
6. 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.
     <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-cc-refund-order.jpg" alt="Refund the order" width="800" />
7. 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.
   <img src="https://razorpay.com/docs/build/browser/assets/images/shopify-cc-refund-verify.jpg" alt="Verify refund status on the Razorpay Dashboard" width="800" />

## Support

If you have queries, raise a ticket on the [Razorpay Support Portal](https://razorpay.com/support/).

### Related Information

* [Troubleshooting and FAQs](/docs/payments/ecommerce-plugins/razorpay-direct-credit-card/troubleshooting-faqs)
* [Ecommerce Plugins](/docs/payments/payment-gateway/ecommerce-plugins)
