Stripe marketplace subscription payments

Hi everyone just a quick question about intergrating stripe marketplace subscription payments. Following the airdev tutorial it seems like in order to create a subscription you would make a call to the stripe subscription endpoint “https://api.stripe.com/v1/subscriptions” and I know the customer and items parameters are necessary and the two transfer data parameters (destination) (ammount/percent) are also useful. But the documentation isn’t very clear on how to implement them or what I should put as the values. If anyone has any thoughts or ideas or resources that would be helpful :slight_smile:

If you are referring to the customer id, there is an api call on creating a customer which you can get the customer id from

To create a subscription, you simply create a checkout session with it’s mode set to subscription but before all these are done, the relevant headers would have to be added

You check bubble official youtube page which gregory really did a thorugh explanation there

I dealt with this a few months ago. For marketplace subscriptions you send the final customer and plan to the subscriptions endpoint, and in transfer_data you include the connected account ID and the amount or percent you want them to receive. Usually destination is acct_xxx, and amount_percent is set based on how much commission you want to keep. Stripe has a decent example in the Connect docs under subscription with application fee.