> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexype.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Paytm

> Connect Paytm as a payment provider in FlexyPe and configure the payment notification webhook

Integrating Paytm with FlexyPe lets you accept UPI, wallet, card, and netbanking payments through your checkout. Setup has three parts: copy your production credentials from Paytm, configure the webhook in Paytm, and add the credentials to FlexyPe.

<Note>
  You need a live Paytm for Business account with production API keys already issued. Test keys will not work on a live store.
</Note>

## Getting the Merchant ID and Merchant Key

<Steps>
  <Step title="Open Production API Details in the Paytm dashboard">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/m0kJ0LpXVuKAA2ST/images/integrations/payment/paytm/paytm-1.png?fit=max&auto=format&n=m0kJ0LpXVuKAA2ST&q=85&s=9098670fd885fde1a0f3fef9b3bbdc7c" alt="Paytm dashboard API Keys page with the Production API Details tab selected, showing Merchant ID and Merchant Key" width="1512" height="801" data-path="images/integrations/payment/paytm/paytm-1.png" />

    * Log in to the [Paytm dashboard](https://dashboard.paytmpayments.com/next/apikeys).
    * Go to **Developer Settings → API Keys**.
    * Select the **Production API Details** tab.
  </Step>

  <Step title="Copy the credentials">
    From the Production API Details table, copy and keep handy:

    | Field            | Notes                                             |
    | ---------------- | ------------------------------------------------- |
    | **Merchant ID**  | Also called MID                                   |
    | **Merchant Key** | Keep this secret — it is a server-side credential |
    | **Website**      | Usually `DEFAULT` for production accounts         |

    <Warning>
      Never share your Merchant Key over chat, email, or screenshots. Paytm treats it as a server-side secret, and anyone holding it can initiate transactions on your account.
    </Warning>
  </Step>
</Steps>

## Set up the Paytm webhook

<Note>Webhook setup is a mandatory step as it confirms the order creation on your store.</Note>

<Steps>
  <Step title="Open the Webhook URL page">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/m0kJ0LpXVuKAA2ST/images/integrations/payment/paytm/paytm-2.png?fit=max&auto=format&n=m0kJ0LpXVuKAA2ST&q=85&s=652bbb31ba7c3f72ed035da10b3d0e86" alt="Paytm dashboard Webhook URL page showing the Payment Notification URL configured to the FlexyPe endpoint" width="1456" height="816" data-path="images/integrations/payment/paytm/paytm-2.png" />

    * In the Paytm dashboard, go to **Developer Settings → [Webhook URL](https://dashboard.paytmpayments.com/next/webhook-url)**.
  </Step>

  <Step title="Set the Payment Notification URL">
    * Click the edit (pencil) icon next to **Payment Notification URL**.
    * Paste the following URL:

    ```
    https://api.flexype.in/v1/public/pg/paytm/webhook
    ```

    * Save the change.

    <Tip>
      The other rows on this page — Success Refund Notify, Accept Refund Notify, Charge Back Notify, and Subscription Pre notify — are optional and are not required for FlexyPe checkout.
    </Tip>
  </Step>
</Steps>

## Integrate Paytm with FlexyPe

<Steps>
  <Step title="Open Payments in the FlexyPe dashboard">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/m0kJ0LpXVuKAA2ST/images/integrations/payment/paytm/paytm-3.png?fit=max&auto=format&n=m0kJ0LpXVuKAA2ST&q=85&s=b05425e5d2acddec0af55259fa584eee" alt="FlexyPe payment provider grid with the Paytm card showing an Inactive status and a Configure link" width="1523" height="806" data-path="images/integrations/payment/paytm/paytm-3.png" />

    * Log in to your [FlexyPe Dashboard](https://dashboard.flexype.io).
    * Go to **Settings → Payments**.
    * Find the **Paytm** card and click **Configure**.
  </Step>

  <Step title="Enter your Paytm credentials">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/m0kJ0LpXVuKAA2ST/images/integrations/payment/paytm/paytm-4.png?fit=max&auto=format&n=m0kJ0LpXVuKAA2ST&q=85&s=87b35f72f62e46558367a1cf974d8771" alt="Configure Paytm dialog in FlexyPe with fields for Website, Merchant ID, and Merchant Key and a webhook confirmation checkbox" width="1523" height="806" data-path="images/integrations/payment/paytm/paytm-4.png" />

    Fill in the **Configure Paytm** dialog:

    * **Website** — the Website value from Paytm's Production API Details, usually `DEFAULT`.
    * **Merchant ID (MID)** — paste the Merchant ID you copied.
    * **Merchant Key** — paste the Merchant Key you copied.
    * Tick **I have successfully configured the webhook** once the Payment Notification URL is saved in Paytm.
    * Click **Save**.

    <Warning>Do not delete the credentials if the payment provider is in use.</Warning>
  </Step>

  <Step title="Route payment methods through Paytm">
    <img className="rounded-lg" src="https://mintcdn.com/flexype/m0kJ0LpXVuKAA2ST/images/integrations/payment/paytm/paytm-5.png?fit=max&auto=format&n=m0kJ0LpXVuKAA2ST&q=85&s=9cc21be2a3496a50059ea5c5c1dc1444" alt="FlexyPe Payment Methods list with a provider dropdown next to UPI, EMIs, cards, wallets, Pay Later, and Netbanking" width="1523" height="806" data-path="images/integrations/payment/paytm/paytm-5.png" />

    * Scroll to the **Payment Methods** section below the provider cards.
    * For each method you want Paytm to handle — UPI / QR Code, EMIs, Debit/Credit cards, Wallets, Pay Later, Netbanking — change the provider dropdown to **Paytm**.

    <Warning>Make sure Paytm is fully configured and shows as **Active** before selecting it as a provider.</Warning>
  </Step>

  <Step title="Complete payment setup">
    * With credentials saved in FlexyPe and the webhook configured in Paytm, setup is complete.
    * The Paytm card status changes from **Inactive** to **Active**, and FlexyPe is ready to process payments.
  </Step>
</Steps>

## Troubleshooting

<AccordionGroup>
  <Accordion title="Orders are not created after a successful payment">
    The Payment Notification URL is missing or wrong in Paytm. Confirm it is set to `https://api.flexype.in/v1/public/pg/paytm/webhook` under **Developer Settings → Webhook URL**.
  </Accordion>

  <Accordion title="Transactions fail immediately after configuring">
    You may have used **Test API Details** instead of **Production API Details**. Re-copy the Merchant ID and Merchant Key from the Production tab.
  </Accordion>

  <Accordion title="Save is disabled in the Configure Paytm dialog">
    All three fields — Website, Merchant ID, and Merchant Key — are required. Website is usually `DEFAULT`.
  </Accordion>
</AccordionGroup>

Need help? Reach out at [support@flexype.io](mailto:support@flexype.io).
