0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Added FirstPromoter referral information to Stripe checkout session when available

closes https://github.com/TryGhost/Team/issues/1038

- FirstPromoter integration needs the referral tracking id information as part of checkout session object to correctly attribute member referrals
- Adds `fp_tid` metadata key for FirstPromoter to correctly attribute paid signups
This commit is contained in:
Rishabh 2021-09-13 13:41:11 +05:30
parent 5afc0ac264
commit 14ca0e004b

View file

@ -152,6 +152,7 @@ function setupGhostApi({siteUrl = window.location.origin}) {
metadata: {
name,
requestSrc: 'portal',
fp_tid: (window.FPROM || window.$FPROM)?.data?.tid,
...metadata
},
successUrl,