How To: Implement Chargeback Protection
How To: Implement Chargeback Protection
Overview
Coinflow provides multiple ways to protect merchant accounts against fraud. Learn more about fraud prevention methods before you start implementing chargeback protection.
How to Add Chargeback Protection
When merchants opt in for chargeback protection, they need to install Coinflow Purchase Protection across every page of their site. This integration gathers device and session signals during the customer’s shopping experience so Coinflow can score the purchase for fraud and chargeback risk. Depending on your implementation method, select from the options below for setup instructions:
React
- Add the <CoinflowPurchaseProtection> component to every page on your site.
- Add your
merchantIdas a property to the <CoinflowPurchaseProtection> component. - In every <CoinflowPurchase> component, add the
chargebackProtectionDataproperty and input information about each purchase made via Coinflow.
React Native
Coinflow provides a mobile module for both iOS and Android that exposes a getDeviceId method. Coinflow’s integrations team will share the module, sample diff files, and the application credentials needed to initialize it on sandbox and production.
Implementation
- Install the mobile module Coinflow provides and follow the README to wire it into your iOS and Android builds.
- Initialize the module on app launch using the application credentials supplied by Coinflow. The same credentials are used in sandbox and production.
- Call the module’s
getDeviceIdmethod to retrieve the device ID. - In
{"<CoinflowPurchase>"}add thechargebackProtectionDataproperty and add information about every purchase that is being made via Coinflow, and pass thedeviceIdthrough to the component.
API
- Add the Coinflow Purchase Protection script to every page on your site. Coinflow’s integrations team will provide the script URL and the initialization credentials needed for sandbox and production.
📘 This script gathers information about the user’s device, how they interact with your website, and other signals that let Coinflow’s models predict the risk of fraud or chargeback for this particular user.
- To each of your API calls, add the
x-device-idheader. Pass the value returned by Coinflow Purchase Protection’sgetDeviceIdmethod on your website.
This
deviceIdis how Coinflow ties an individual request back to the device and session signals collected by the script you installed above.
- In the Checkout Endpoint and the Redeem Transaction Endpoint, pass the
chargebackProtectionData.
📘 This information describes what is being purchased, which lets Coinflow’s models determine the risk of chargeback for this particular purchase.
What to pass into chargebackProtectionData
Merchants that opt-in for chargeback protection are required to pass chargebackProtectionData as a prop to the <CoinflowPurchase> component or to our card checkout, saved card checkout, ach checkout , and redeem transaction endpoints.
🚧 The more information that you pass here the better the authorization rates will be, so it is in your best interest to supply as much information as possible

