> ## 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.

# Optimizer Integration Audit Tool

> Automatically identify issues with your Optimizer payment provider integration before going live.

<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>

The Integration Audit Tool offers a secure and controlled setting to comprehensively test your integrations before going live with your payment provider. This thorough evaluation of all integration aspects reduces the risk of issues, ensuring a smooth deployment. By detecting and resolving these issues early, businesses can prevent potential problems before they escalate. This proactive approach helps protect revenue streams and, more importantly, maintains customer trust.

## Supported Payment Providers

Below is the list of payment providers supported for Integration Audit Tool:

<AccordionGroup>
  <Accordion title="Supported Payment Providers">
    |   | Payment Provider | Availability |
    | - | ---------------- | ------------ |
    | 1 | Cashfree         | Live         |
    | 2 | Paytm            | Live         |
    | 3 | PayU             | Live         |
  </Accordion>
</AccordionGroup>

## Test Integration

Follow the steps given below to add and test your payment provider integration. The integration testing consists of 5 steps:

<AccordionGroup>
  <Accordion title="Step 1: Credentials Testing">
    Follow the steps given below to test your payment provider credentials:

    1. Log in to your Dashboard.
    2. On the left navigation, select **Optimizer** and click **Add provider**.
    3. Select the payment provider you want to add. Fill in the provider and secret key details and click **Test integration**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-select-provider.jpg" alt="Integration Audit" width="800" />
    4. If the credentials are invalid, you will get an error. Re-enter the correct details and click **Test Credentials**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-creds-error.jpg" alt="Integration Audit cred error" width="800" />
    5. On successful validation of credentials, a pop-up screen appears. Click **Test now**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-test-now.jpg" alt="Integration Audit test now" width="800" />
  </Accordion>

  <Accordion title="Step 2: Payment Testing">
    On the **Payment testing** screen:

    1. Enter the amount you want to test and click Test payment.
           <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-payment-testing.jpg" alt="Integration Audit" width="800" />

    <Info>
      **Handy Tips**

      The **Payment type** and **Payment method** will be set as default options.
    </Info>

    2. Scan the QR code and click **Pay Now**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-payment-testing-qr.jpg" alt="Integration Audit testing qr" width="800" />

    <Tabs>
      <Tab title="Success">
        Once the payment is successful, click **Continue**. You can click **Test another** if you want to test another payment.

        <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-payment-testing-success.jpg" alt="Integration Audit testing success" width="800" />
      </Tab>

      <Tab title="Failure">
        If the payment is unsuccessful, an error message and the corrective action will appear.

        <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-payment-test-failures.jpg" alt="Integration Audit testing failure" width="800" />
      </Tab>
    </Tabs>
  </Accordion>

  <Accordion title="Step 3: Refund Testing">
    On the Refund testing screen, click Initiate Refund for the transaction you want to test the refund.

    <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-refunds-testing.jpg" alt="Integration Audit refund" width="800" />

    <Tabs>
      <Tab title="Success">
        Once the status of the transaction changes to **Initiated**,  click **Continue**.

        <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-refund-testing-success.jpg" alt="Integration Audit refund testing success" width="800" />
      </Tab>

      <Tab title="Failure">
        If the refund is unsuccessful, an error message and the corrective action appears.

        * Paytm:
                  <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-refund-testing-paytm-fail.jpg" alt="Integration Audit refund testing paytm fail" width="800" />
        * Other Payment Gateways:
                  <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-refund-testing-pgs-fail.jpg" alt="Integration Audit refund testing pgs fail" width="800" />
      </Tab>
    </Tabs>
  </Accordion>

  <Accordion title="Step 4: Integration Audit Summary">
    The **Integration audit summary** screen displays the instrument coverage for all payment methods for the payment provider you want to add.

    <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-summary.jpg" alt="Integration Audit summary" width="800" />

    You can double-click on any instrument to see an expanded view comparing the availability of each payment method for your payment provider with Razorpay's.

    <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-summary-view.jpg" alt="Integration Audit summary view" width="800" />
  </Accordion>

  <Accordion title="Step 5: Provider Settings">
    On the Provider settings screen, enable or disable the payment methods you want for your payment provider and click **Go live**.

    <img src="https://razorpay.com/docs/build/browser/assets/images/integration-provider-settings.jpg" alt="Integration Audit provider settings" width="800" />

    After completing all the steps mentioned above, you can go live with your payment provider.
  </Accordion>
</AccordionGroup>

## View and Edit Payment Provider Details

Once your payment provider is added successfully, you can [view](/docs/payments/optimizer/integration-audit#view-provider-details)  and [edit](/docs/payments/optimizer/integration-audit#edit-provider-details) the provider details.

<AccordionGroup>
  <Accordion title="View Provider Details">
    To view your provider details:

    1. Log in to your Dashboard.
    2. On the left navigation, select **Optimizer** and click on the payment provider you added. The payment provider details appear.
           <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-view.jpg" alt="Integration Audit view" width="800" />
  </Accordion>

  <Accordion title="Edit Provider Details">
    To edit your provider details:

    1. Log in to your Dashboard.
    2. On the left navigation, select **Optimizer** and click on the payment provider you want to edit.
    3. Click **Edit Details**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-edit.jpg" alt="Integration Audit edit" width="800" />
    4. For example, click **Edit production details**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-edit-production.jpg" alt="Integration Audit edit production" width="800" />
    5. Make the required changes and click **Test Credentials**.
           <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-edit-production-test.jpg" alt="Integration Audit edit production test" width="800" />
    6. A confirmation pop-up appears, click **Yes** to save your changes.
           <img src="https://razorpay.com/docs/build/browser/assets/images/integration-audit-edit-production-save.jpg" alt="Integration Audit edit production save" width="800" />
  </Accordion>
</AccordionGroup>
