If you’re using a payment provider (e.g. WooCommerce, GoHighLevel) and not Stripe directly, please refer to other integrations.
-
Connect your Stripe Account
In order to track your orders and subscriptions as well as handle refunds, Afficone will receive a few webhook events when something happens on your Stripe account. More specifically charge.refunded, invoice.paid and checkout.session.completed.
-
Install our tracking script on your website
For example, if you have a landing page at example.com, but your billing page is at app.example.com, you have to add the script to both of these pages.
Installation
Add the Afficone tracking script to your website.
-
Integrate your Stripe’s payment system
If you’re using client-based Stripe checkouts, you have to add the
clientReferenceId
property to your checkout configuration.Offering free trials?
If you’re creating Stripe customers via API (that’s usually the case when offering a free trial), you have to set some customer metadata manually. This is done by specifying an_afficoneRef
property in the metadata object when creating a customer:
You can pass the referral code from the browser to your backend - it’s located in
window.Afficone.referral
.