#smtlaissezfaire
1 messages · Page 1 of 1 (latest)
Basically I've got a few different things that subscribers can subscribe to, but I'm trying to pass along any stripe fees to them, and so I'm adding an extra line item with the stripe fees
Hi, it looks like you're migrating away from Stripe Checkout. You can pass in additional one off line items, https://stripe.com/docs/api/subscriptions/create#create_subscription-add_invoice_items when you create the Subscription.
Will those get charged with every reucrrence of the subscription?
Not every recurrence. If you'd like this to be recurring, you can add up to 20 line items: https://stripe.com/docs/api/subscriptions/create#create_subscription-items to a Subscription.
Hmm, here's what I'm passing: ``` opts[:items] << {
price_data: {
currency: plan.currency.downcase,
recurring: {
interval: "year"
},
unit_amount: payment_method.calculate_fees(plan.amount).cents,
product_data: {
name: payment_method.short_fee_description,
description: payment_method.long_fee_description,
},
},
quantity: 1,
}
This guide might help clarify how Subscriptions work, https://stripe.com/docs/billing/subscriptions/overview. You can create the Product/ Price before you create the Subsciption and then pass the price ids, https://stripe.com/docs/api/subscriptions/create#create_subscription-items-price.
I see, so I could use a different price for the same plan