Closed MitchelSt closed 3 years ago
Do you have your webhook handler configured correctly? If so you should see this in the logs for the ext-firestore-stripe-subscriptions-handleWebhookEvents
function:
🚦 Added custom claim [stripeRole: premium] for user [ly9Vm...].
Can you double check your webhook configuration and the function logs please?
I just re-configured everything from scratch, checked the logs; but without success.
Could this perhaps be the case since one-time payments are not supported?
@MitchelSt custom claims are not supported for one-time products, only for recurring products
@thorsten-stripe I also stumbled over this. In my opinion, support for one-time products would really be a benefit - because then a product can also be bought via one-time payment.
What would be your recommended way to enable premium service for users who bought a one-time product?
did anyone find a clean way of doing this?
lifetime plans of premium subscriptions seems like it would be a common use-case
@thorsten-stripe im also experiencing the same issue
@thorsten-stripe me too!
Bug report
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
async function getCustomClaimRole() { await firebase.auth().currentUser.getIdToken(true); const decodedToken = await firebase.auth().currentUser.getIdTokenResult(); console.log(decodedToken.claims.stripeRole); }
Expected behavior
user.claims.stripeRole should contain a value
System information