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

# Cashfree Integrity

> Use Cashfree Integrity to block unauthorised tampering of merchant apps by verifying installer packages against Play Store, App Store, and approved sources.

Cashfree Integrity serves as an essential safeguard, preventing unauthorised tampering, and distribution of merchant applications, ensuring the security of your digital ecosystem.
Merchant applications undergo a comprehensive evaluation process by their respective stores such as Google Play, App Store, Samsung Store and so on. Cashfree Integrity provides a robust defence mechanism, allowing only applications to be installed from regulated stores and ensures only these applications receive payments.

### What is Cashfree Integrity

Whenever an application is installed from any regulated store such as Play Store, or App Store, Cashfree Integrity checks if the application is installed from regulated stores and ensures their compliance and makes sure the application is not tampered by any middle man.

Cashfree Integrity works by extracting the package name of the installer and compares it with authorised sources and allows the transaction to flow through. In case the installer package is not from verified stores, Cashfree Integrity blocks the transaction and your customer will not be able to perform that transaction.

### Advantages

Cashfree Integrity shields all the complexities of checking the installer package ensuring transactions are passed only from valid applications installed from verified stores.
This implementation streamlines the payment flow by enabling us to block payments directly if the aforementioned checks fail.

Cashfree Payments also supports additional app stores, including the Samsung Galaxy Store, Indus Appstore, Vivo App Store, Xiaomi GetApps, OPPO App Market, OnePlus App Market, and Amazon Appstore.

<Note>
  If your mobile application is distributed through an app store other than the Google Play Store or the Apple App Store, you must whitelist the installer package name of that app store before you can use Checkout in the production environment.

  To whitelist the installer package name for your account, submit a request through the [Support Form](https://merchant.cashfree.com/merchants/landing?env=prod\&raise_issue=1). Our support team will review your request and whitelist the installer package name.
</Note>

## FAQs

<AccordionGroup>
  <Accordion title="Can I test my app if it is not yet published on the Play Store or App Store?">
    Yes. In the sandbox environment, Cashfree Integrity does not enforce store verification, so you can test without a Play Store or App Store listing. For production testing, distribute your app through the Play Store's internal testing track instead of sideloading the APK directly. This satisfies Cashfree Integrity's store verification requirement without requiring a public release. For setup instructions, see [Integrity prod setup](/payments/online/mobile/misc/cashfree_integrity_prod_testing).
  </Accordion>

  <Accordion title="What are the stores supported by Cashfree Integrity?">
    Google Play Store, Apple App Store are the stores supported by Cashfree Integrity.
  </Accordion>

  <Accordion title="When will the payment fail?">
    If any merchant distributes the APK file through any unauthorised channel, Cashfree Integrity will block any payment happening through that application. In case you are testing in production mode, the payments will fail since the application is not installed from an authorised source. You can simulate production payments by doing a beta release of your application.

    [Setup for PROD test](/payments/online/mobile/misc/cashfree_integrity_prod_testing)
  </Accordion>

  <Accordion title="What are the security mechanisms available as of now in Cashfree Integrity?">
    * Transactions happen only through verified package names.
    * Package names are whitelisted and ensure that applications are installed from verified stores.
  </Accordion>
</AccordionGroup>

<div class="hidden" data-table-of-contents="bottom">
  <p class="mt-4 font-medium flex items-center gap-2 related-docs-heading">
    <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" class="w-4 h-4">
      <path d="M3 4h7a2 2 0 0 1 2 2v13a2 2 0 0 0-2-2H3z" />

      <path d="M21 4h-7a2 2 0 0 0-2 2v13a2 2 0 0 1 2-2h7z" />
    </svg>

    <span>Related topics</span>
  </p>

  <ul>
    <li><a href="/docs/payments/online/mobile/misc/cashfree_integrity_prod_testing">Setup for PROD test</a></li>
  </ul>
</div>
