New in Chargebee: Explore Reveal and understand your payment performance end-to-end.Try Now
Docschargebee docs
HomeBillingPaymentsRevRecGrowthReveal
Support

Product Updates


  • Release Notes

Getting Started


  • Overview
  • Chargebee Billing Data Centers
  • Object Relationship Model
  • Understanding Sites
  • Chargebee Tech Glossary
  • Articles and FAQ

Implementing Chargebee


  • Implementation Guide
  • Go-live Checklist
  • Articles and FAQ

AI in Chargebee


  • Chargebee Agents
  • Chargebee Copilot
  • Chargebee MCP Server (Model Context Protocol)

Developer Resources


  • Developer Resources Overview
  • Articles and FAQ

Product Catalog


  • Product Catalog Overview
  • Coupons
  • Articles and FAQ

Subscriptions


  • Working with Subscriptions
  • Billing
  • Orders
  • Articles and FAQ

Customers


  • Managing Customers
  • Account Hierarchy
  • Email Notifications
  • Branding
  • Configure Multiple Languages
  • Articles and FAQ

Entitlements


  • Entitlements Overview
  • Features Overview
  • Feature Management
  • Managing Product Entitlements
  • Subscription Entitlements
  • Customer Entitlements
  • Grandfathering Entitlements
  • Articles and FAQ

Usage Based Billing


  • Understanding Usages
  • Setting up Usage Based Billing
  • Usage Alerts
  • Metered Billing
  • Articles and FAQ

Chargebee CPQ


  • Chargebee CPQ
  • Chargebee CPQ for Salesforce
  • Chargebee CPQ for HubSpot

Invoices, Credit Notes, and Quotes


  • Invoices
  • Credit Notes
  • Quotes [Legacy]
  • Transactions
  • Articles and FAQ

Taxes


  • Overview
  • Configuring Taxes
  • Country-specific Taxes
  • Articles and FAQ

Hosted Capabilities


  • Overview
  • Hosted Checkout
  • Hosted Self-Serve Portal
  • Hosted Pages Features
  • Additional Hosted Pages
  • Payment Components
  • Pricing Table
  • Managing Payments with Chargebee.js
  • Mobile-Optimized Hosted Pages
  • Articles and FAQ

Site Configuration


  • Users & Roles
  • Custom Fields & Metadata
  • Approvals
  • Mandatory Fields
  • File Attachments & Comments
  • Advanced Filter Options
  • Multicurrency Pricing
  • Multi-decimal Support
  • Configuring Reason Codes
  • Events and Webhooks
  • API Keys
  • Time Zone
  • Time Machine
  • Transfer Configurations
  • Articles and FAQ

Multi Business Entity


  • Multi Business Entity Overview
  • Customer Transfer Overview
  • Articles and FAQ

Mobile Subscriptions


  • Overview
  • Omnichannel Subscriptions
  • Omnichannel One-Time Orders
  • Mobile Subscriptions (Legacy)

Reports and Analytics


  • RevenueStory
  • Home Dashboard
  • Frequently Asked Questions
  • FAQs for Classic Reports Sunset
  • Articles and FAQ

Integrations


  • Sales
  • Customer Support and Success
  • Finance
  • Tax
  • Marketing
  • Stitch
  • Collaboration
  • Contract Management
  • Ecommerce Management
  • Articles and FAQ

Data Privacy & Security


  • Two Factor Authentication
  • SAML Single Sign-On
  • System for Cross-Domain Identity Management (SCIM)
  • EU-GDPR
  • Consent Management
  • Personal Data Management
  • Compliance Certificates
  • HIPAA Guidelines
  • PCI Recommendations and Integration Types
  • Articles and FAQ

Data Operations


  • Bulk Operations
  • Migration
  • Articles and FAQ

LeadDyno

LeadDyno is a major stakeholder in affiliate marketing, allowing you to automate lead conversions, cancellations and affiliate compensations for purchases made via Chargebee.

Using this seamless integration, you can send transaction details to LeadDyno along with the affiliate id and track the affiliate's conversion and commission.

In-app Checkout users

If you are using Chargebee's In-app Checkout, follow the steps below to set up the integration

1) Add Drop in script

Add the following code to the head tag of your website,

<script type="text/javascript" src="https://static.leaddyno.com/js"> </script>

<script>
LeadDyno.key="PUBLIC_API_Key"; // public LeadDyno API key
LeadDyno.recordVisit();
LeadDyno.autoWatch();

$( document ).ready(function() {
var trackingId = LeadDyno.devTools.getTrackingId();
var cbInstance = Chargebee.getInstance();
var cart = cbInstance.getCart();
cart.setAffiliateToken(trackingId); //for Chargebee to track the affiliate id and pass it in subscription information
});
</script>

2) Configure a webhook in Chargebee

Navigate to the Webhook Settings page in Chargebee, and then,

  1. Create a new webhook named "LeadDyno"
  2. Enter the Webhook URL as: https://collector.leaddyno.com/chargebee_webhook?key=<YOUR_PRIVATE_KEY> (Replace it with your private LeadDyno API key)
  3. Keep the other configurations unchanged and click Create Webhook.

Completing the above setup will enable LeadDyno to track any lead conversions or cancellations made and even calculate the affiliate compensation for purchases.

Single Page Checkout users

If you are using Chargebee's Single Page Checkout, follow the steps below to set up the integration

1) Add Drop in script

Add the following code to the head tag of your website,

<script type="text/javascript" src="https://static.leaddyno.com/js"> </script>

<script>
LeadDyno.key="YOUR PUBLIC KEY"; // public LeadDyno API key
LeadDyno.recordVisit();
LeadDyno.autoWatch();
LeadDyno.initChargebee(); // <-- updates all Chargebee links with tracking id
</script>

2) Configure a webhook in Chargebee

Follow the steps given above for In-app Checkout.

Completing the above setup will enable LeadDyno to track any lead conversions or cancellations made and even calculate the affiliate compensation for purchases.

API-based Checkout Integration

If you are completely accessing Chargebee using API, there is an extra step you need to take for completing the integration.

Input LeadDyno Affiliate ID as parameter. It can be retrieved from LeadDyno's Javascript API.

1) Add Drop in script

To set up visitor and conversion tracking, copy the following code and add it to the head tag of your website.

<script type="text/javascript" src="https://static.leaddyno.com/js"> </script>

<script>
LeadDyno.key="YOUR PUBLIC KEY"; // public LeadDyno API key
LeadDyno.recordVisit();
LeadDyno.autoWatch();

</script>

2) Identify the Affiliate ID for the visitor

LeadDyno's Javascript library helps in identifying the Affiliate ID of any visit through an affiliate with the help of their JS library.

var affiliateId = LeadDyno.devTools.getTrackingId();

**3) Pass the affiliate id to Chargebee Subscription creation API **

While calling ‘Create Subscription API' for creating a subscription in Chargebee, pass this Affiliate ID as "affiliate_token".

4) Configure a webhook in Chargebee

Follow the steps given above for In-app Checkout.

Completing the above setup will enable LeadDyno to track any lead conversions or cancellations made and even calculate the affiliate compensation for purchases.

Limitation

Currently LeadDyno only listens to "payment_succeeded" event in Chargebee. This is a limitation because, Chargebee has introduced a lot of features for delayed billing and affiliate commission might get delayed until the actual payment happens.

FAQs

1) Can I choose to give different commissions to different affiliates? Yes, you can choose to give different commissions to different affiliates. To do this, create an affiliate in LeadDyno and assign the affiliate to an affiliate type. While creating a commission rule, choose this particular affiliate type, the selected commission rule will then be applied to all affiliate transactions made through the Affiliate ID corresponding to the affiliate type.

2) How does the integration process recurring subscriptions?

Once a webhook is configured in Chargebee, every transaction created will be sent to LeadDyno along with the Affiliate ID. LeadDyno listens to Chargebee's "payment_succeeded" event and processes the commission for the Affiliate ID based on the commission rules defined. If you choose not to give commissions for recurring transactions, you can do so by configuring the "Repeat Payment" options under Commission settings on LeadDyno.

3) How does the integration process multiple subscriptions for a customer?

Once the webhook is configured in Chargebee, every transaction created will be sent to LeadDyno along with the Affiliate ID. LeadDyno listens to Chargebee's "payment_succeeded" event and processes the commission for the Affiliate ID, based on the commission rules defined. If you choose not to give commissions for multiple subscriptions for a customer, you can do so by setting "Pay Commissions for Multiple Purchases" configuration under Settings > Affiliate settings to No.

Articles & FAQs

LeadDyno: How to send the affiliate_token value via API when I create a subscription

Was this article helpful?