#San_jen-subscriptions
1 messages · Page 1 of 1 (latest)
So I have this fundraiser where use would enter the monthly price they want to pay
so I need to know is this possible with stripe
so depending on the user the price can change, it would be fixed price for each month for the particular user
Got it! And how are you creating the subscriptions?
At the moment I have created the subscription manually in stripe and added fixed price
so now I think have to create subscription from the coding itself?
the product *
Instead of passing a price ID in items.price, you could directly set the amount in items.price_data.unit_amount https://stripe.com/docs/api/subscriptions/create#create_subscription-items-price_data
I use this to create subscription
subscriptions.create({
customer: cus,
items: plan,
proration_behavior: "none"
})
oh i see, ill try this
so here we dont need to pass the price id right?
we directly pass the items.price_data.unit_amount
no need of items.price ?
Exactly