#Kbench
1 messages · Page 1 of 1 (latest)
Hello
Looking for some guidance. I'm using Standard Accounts on the Connect product. I've figured out how to make the connected accounts and I'm trying to design the workflow for charging customers and taking the platform fee. I'd like to be able to use Stripe's Hosted Checkout.
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=checkout seems to be what I am after but I don't see how to set the connected account info.
Hi, yes you could.
Getting the document for you
You'd want to use the Stripe Account Header: https://stripe.com/docs/connect/authentication and pass the Standard Connect accounts id when creating the Checkout Session.
Would I be able to pass the application_fee into the Checkout Object? Something like this?
Feel like I'm missing some API call for this workflow.
You can use this: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-application_fee_amount. You just need to expand this the payment intent data parameter
Sure!
I recommend that you test in using your test API key, https://stripe.com/docs/keys
Will do. Ya'lls python library is so nice.
So with this, would should be I be creating a PaymentIntent object first before creating the Checkout object? Or am I just embedding the PaymentIntent data into the Checkout request?
No, you're just passing additional data to the Payment Intent object. I recommend that you watch this https://stripe.com/docs/payments/tour#payment-objects video which explains how out object related to each other.