#paymentplugins
1 messages · Page 1 of 1 (latest)
Yes this is possible. You would use the price_data and product_data parameters for each of the items you pass when creating the subscription.
https://stripe.com/docs/api/subscriptions/create#create_subscription-items-price_data
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ahh perfect, thank you @harsh dome
@ruby fog
I don't see anything in the linked docs about a product_data parameter. Apologies if it's obvious
It's nested within the price_data
You can either specify a product or create your own ad hoc with product_data
I must be slow today, still don't see the nested product_data property. Closest I see is https://stripe.com/docs/api/subscriptions/create#create_subscription-items-price_data-product
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hmmm.... I could have sworn that was a thing but I'm not seeing it either. 🤔
@ruby fog Maybe it's a beta feature only available when logged in to your stripe.com account? I remember our partner manager telling us about it
I was checking with my colleague and we don't think we do. We advise that all our users create a basic product catalogue.
Too often neglecting this up front leads to massive headaches down the line and we just want to spare our users that pain
@ruby fog thank you for confirming. I think I was confusing the planned functionality for creating inline products with the order's API and Stripe tax
Yeah. Checkout also lets you do something similar. But for the overall health of your integration we recommend creating a definitive product catalogue