For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Merchants can follow this guide to learn how to implement Coinflow’s Marketplace so that end-users can make purchases from sellers, allow sellers to withdraw their earnings from profits, and the marketplace can view all activity happening on their own marketplace!
This will generate a link which sellers can use to login to their seller dashboard to view purchases, customers, withdraw their funds, view withdraw history.
"feePercentage": 5, // marketplace fee you will take from each purchase
"webhookInfo": "{productId: 123abc, code: ABC123}", // Pass whatever webhook data here
"chargebackProtectionData": [
{
"productType": "<GET_FROM_COINFLOW>", // Get this value from coinflow after filling out chargeback protection docs
"productName": "cash gift",
"quantity": 1,
"rawProductData": { // Adjust based on what data you have available on the product being purchased. The more info you pass, the better chargeback decision outcome will be.
"productDescription": "A cash gift that can be used at the seller discretion",
"productCategory": "tipping services",
"gift id": "123abc"
},
],
"sellerId": "seller1",
"email": "testCustomer@test.com",
"deviceId": "12345ABCD" // Get this after adding chargeback script across site. For reference: /guides/checkout/payment-security-risk-management/fraud-protection/implement-chargeback-protection#how-to-add-chargeback-protection
}
'
👍 Want to trigger your own on success events?
You can listen to success event messages and get the payment id or pass your own function
<iframe
allow="payment"
src="COINFLOW_CHECKOUT_URL"
onLoad={() => {
window.addEventListener('message', event => {
if (typeof event.data === 'string' ) {
const data = JSON.parse(event.data);
if (data.data === 'success') {
console.log('payment id', data.info.paymentId)
}
}
});
}}
/>
Share payer events with Coinflow
Sharing major events that a payer makes throughout their lifecycle on your website prior to them making a purchase will allow us to collect more information about them and improve your approval rates.
Note: It is a requirement to add this script to the head of every page, and not just where the payment occurs. After filling in the chargeback protection questionnaire, Coinflow will provider a partner id.