#Naveed | Web3Auth
1 messages · Page 1 of 1 (latest)
Our recommended integration is 2) you should be following the second options and the official guide.
I only have one issue with number 2 (which is why im raising the question)
# Basic
$100 USD/Year
First 1000 MAU free
0.1USD / additional MAU
# Growth
$150 USD/year
First 3000 MAU free
0.05USD / additional MAU
I need to model a yearly flat recurring fee + monthly recurring graduated pricing based subscription
It doesnt seem possible to put them under the same subscription
actually both plans also have a monthly version, in that case its a-okay, i can just create a sub with multiple price ids, one for the flat fee, one for the variable MAU
e.g.
Basic
10USD/Month
First 1000 MAU free
0.1USD / additional MAU
Create two Subscription for the same customer, one yearly and one monthly
in this case i can put them under one sub, and hence we also can have both items appear on same invoice
for consistency do u think i should also make the monthly version 2 subs also
1 sub for the flat fee, 1 sub for the mau
even though both are monthly
like based on this approach I understand your recommendation for doing so for the yearly + monthly hybrid.
but the monthly flat fee + monthly variable MAU doesn't face the same issue
And another thing is that, it seems like based on approach 2, I can only send the client secret tied to one subscription, so stripe elements confirm payment would only complete that one subscription
i guess ill have to listen to webhooks for sucess of flat fee subscription, and create subscription for variable MAU based off of that?
You can use the resulting PaymentMethod and use it for the second Subscription
Could you elaborate more here please?
Lets say we have Basic monthly
in this case i dont face the issue of mismatched periods
in this case it seems that i can just create one subscription
with 2 price ids, one for flat fee, one for variable MAU
this logic is written in the webhooks endpoint?
Yes you can rely on webhooks for this and get the PaymentMehtod used for the first Susbcription
how will i know in the webhooks endpoint what plan user signed up for though
and what is the case where you have an issue of mismatch periods ?
for basical annual + monthly MAU
as in i need to know whether or not user signed up for basic or growth, and based on that subscribe them to the correct MAU rate
cuz basic and growth have different rates
That data will be available in the payload of associated customer.subscription.* webhooks, lines field: https://stripe.com/docs/api/subscriptions/object#subscription_object-items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so just to get back to one of the other questions, the best way to model this scenario is 2 subs?
I was recommended for the 2nd case (basic yearly), to use 2 subs,
But for the first one i wouldnt need 2 subs since the subscription intervals arent mismatced
theyre both monthly
Correct, items on the subscription must have the same billing interval
ok thanks a lot for all your help! Time to integrate!
np