I’m trying to look up a subscription on Stripe. Normally, I’d do
stripe.subscription.retrieve(subscription_id)
but the Stripe object returned by require('stripe')(restrictedKey) does not have a subscription property. The closest is customerSubscriptions, which does not seem to be documented anywhere that I can see.
What version of the Stripe library is used by Auth0? Where can I find out more about it?
I cannot find it in the rules editor. How is this called? Have you created it yourself? Based on the context you provided it’s more a question for Stripe developer community forum I think.
Gotchya! I would love to help you but it’s definitely a question towards Stripe engineers or simply for their docs instead of us. Can you try reaching out to them and discuss it?
Unfortunately, we do not support an integration with Stripe. However, you can try using the rule to create stripe user and persist the stripe ID in the user_metadata or app_metadata object. Then, you can add the stripe ID in the ID token as the custom claim. The following community thread has got an example. Using Stripe as payment platform and link account to an Auth0 user. - #3 by md.reeves. But keep in mind this would be entirely custom and not supported by Auth0.