#Deiv
1 messages · Page 1 of 1 (latest)
"on each payment" -> do you mean an one-time fee during subscription creation? or a recurring fee in each renewal?
Each month I have to charge product cost + shipping
And is the shipping a fixed price? or variable ?
Fixed
Then you can just include the shipping fee as one of the items (https://stripe.com/docs/api/subscriptions/create#create_subscription-items) when creating a subscription.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can I include a shipping rate on that list?
No
So I have to create new items just to charge shipping?
If the shipping cost were dynamic what'd be the right way?
Yes you can just a item for fixed shipping.
If the shipping cost is variable, you don't include it when creating a subscription, instead, you should listen to invoice.created and create an invoice item for the amount that you want to charge for shipping.
But that way wouldn't they have to pay twice?