#geekymechanic
1 messages · Page 1 of 1 (latest)
Hello! No, Payment Intents are low-level objects that aren't aware of what's being sold, just the total amount you want to charge. If you want higher-level functionality like you're talking about you probably want to use something like a Checkout Session or Invoice. See the short video here for more details: https://stripe.com/docs/payments/tour#payment-objects
With invoice, can I use stored payment methods using SetupIntent?
I'll explain further my use-case. I have a sort of e-commerce where multiple merchants can sell products. I want to use Connect Standard accounts and Direct charges so I do not have to handle taxes and refunds. However a user can buy from multiple Connect accounts at once on my platform. So it was pointed out to me that I could clone customers or payments methods when needed to the different accounts. Then I proceeded to create a different PaymentIntent to each relevant account for the right amount from a stored PaymentMethod using SetupIntent and checkout. This way, the user only enters card details once and the rest is handled from the backend.
Yes, you can do that with Invoices.
Could you help me get a gist of the flow to set this up?
I found this : https://stripe.com/docs/invoicing/connect which does explain how to make the direct charges, but still has a need for the customer to pay more than once
More than once as in automatically recurring, or more than once as in you initiate several discrete payments over time?
More than once as in they would have to enter their details and pay manually once per connected account that owns a product in their cart.
Which is done programatically using PaymentIntent right now
Not sure I understand... you want them to have to provide their payment details every time?
No, I would like to avoid that, My current application flow is as follows : 1- A Merchant signs up to my platform and goes through Stripes onboarding process to become a fully functionnal Connected Account 2- The merchant then creates and publishes a product on my platform with basic product info 3- a customer signs up to my platform 4- they add products to their cart which can come from any merchant thus any Connect account 5- They checkout and each Connect account recieve their fair share of the checkout amount (quantity of owned product * price)
Now the issue is that Stripe Checkout has no built in way to split a bill into multiple Connect accounts for using Direct Charges
What I did was that during the Signup process for the customers, I created a Checkout session in setup mode and used SetupIntent to save the payment method and reuse it later. Then when a user checks out their card, the payment was handled automatically by my back end which used Payment Intents to bill the fair share of each merchant into their specific connect accounts thus preventing the user from having to enter their payment details multiple times
For something like that you would need to collect the payment info on your platform and then clone it to all the connected accounts and create the direct charges on each. You can do that last part with Payment Intents or Invoices.
And I can use invoices to charge the customers card programmatically?
Yes.
Could you direct me towards resources to acheive this? I haven't found anything that talks about this yet
I recommend reading through this: https://stripe.com/docs/invoicing/integration
And the Invoice API reference: https://stripe.com/docs/api/invoices
Is it possible to populate an invoice without create a product and price?
👋 stepping in here as Rubeus needs to step away
Hey