Pass User IDs Through Stripe Metadata for RevenueCat GrantsPass User IDs Through Stripe Metadata for RevenueCat Grants
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Copy your user ID into subscription_data.metadata when you create the Stripe Checkout Session, because client_reference_id lives on the session and the customer.subscription.created event that triggers your RevenueCat grant carries only the subscription's own metadata.`
Timothy's avatar
This is the kind of Stripe detail that saves someone hours of debugging, Dusko. The subscription carrying only its own metadata while the reference ID lives on the session is exactly the trap I would have fallen into.
Rafee 's avatar
Good catch on the metadata. That one would take a while to debug.
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started