#bhanu365
1 messages · Page 1 of 1 (latest)
It doesn't seem like you have a 6 month recurring billing cycle set up on this Price price_1N7ZzKFmM52WOkSondq6gq6q. You have to set that to recurring per the error message: "The price specified is set to type=one_time but this field only accepts prices with type=recurring."
price_1N7ZyWFmM52WOkSo3vbwuKUk
That is the price for recurring
Right, but you are trying to add price_1N7ZzKFmM52WOkSondq6gq6q via the API call you referenced req_OW8VZCY9NKy1Kb. This Price is not recurring
Then you can this request id: req_0ffXVHohBc7y3E
The error message is similar for this one. I think the issue you're having is that you're trying to set both one-time payments and recurring payments on the same Subscription. Stripe doesn't allow you to do this. You would need either create a separate subscription for each, or alternatively you can just add a one-time Invoice Item to a recurring Subscription
Can you give me a sample code according to my requirement?
I have already invested a significant amount of time into it, yet I find myself still on the same page.
This isn't super common, so we don't have a tutorial on how to build it, but we do show a number of similar billing models with step-by-step guides here: https://stripe.com/docs/products-prices/pricing-models
Got it thanks