#mohamed.0344

1 messages ยท Page 1 of 1 (latest)

edgy pewterBOT
noble dove
#

๐Ÿ‘‹ happy to help

#

Payment Links can't use inline pricing

#

you can use Checkout Sessions in that case if you prefer

iron pecan
#

can you please send me the link inside docs of checkout sessions?

noble dove
iron pecan
#

ok but how can i make it for a connected account

#

like i should put a connected account id and i can't find it

#

@noble dove

noble dove
#

what type of Charges are you looking for? Direct or Destination?

iron pecan
#

direct

noble dove
iron pecan
#

ok i want ask can i store the connected account id in the database, and does it expire or not?

#

@noble dove

noble dove
#

please don't @ people every time you have a question, we will try to answer you asap

noble dove
iron pecan
#

got it, thank you for your help really

noble dove
#

let me know if you need any more help

iron pecan
#

ok but after the user complete the payment, how can i make the payment link expire after the user complete the payment?

noble dove
#

if you're using Checkout Sessions, you don't have to, since Checkout Sessions are meant to be used for single-use purposes

iron pecan
#

amazing, thank you

#

and yeah i wanna ask that when a user pays using the payment link, does the money goes directly at the same second to the stripe connected account, or to my stripe account?

noble dove
#

if you're using Direct Charges, it will go to the Connected Account balance

edgy pewterBOT
iron pecan
clever thistle
#

Hi! I'm taking over this thread.

#

Can you try to summarize your question?

iron pecan
#

ok, so i want user clicks on payment link for the connected account and when user pays the money goes to the connected account balance at the same second

#

so if i want do this i can create a checkout sessions and at the stripe webhook i can create issue refund?

#

or i must create a direct charge only to make that happen? and can i create a payment page for the direct charge?

clever thistle
#

ok, so i want user clicks on payment link for the connected account and when user pays the money goes to the connected account balance at the same second
Yes that's possible.
so if i want do this i can create a checkout sessions and at the stripe webhook i can create issue refund?
Why are you talking about refunds here?
or i must create a direct charge only to make that happen? and can i create a payment page for the direct charge?
It depends. What type of connected account are you using? Standard, Express, or Custom?

iron pecan
#

or i must create a direct charge only to make that happen? and can i create a payment page for the direct charge?

#

i want it for standard account

clever thistle
#

So yes create a Direct Charge on the connected account. Either a Checkout Session or a PaymentLink depending on your needs. And by default all the money will go to the connected account, unless you set an application_fee.

iron pecan
#

ok, so i want user clicks on payment link for the connected account and when user pays the money goes to the connected account balance at the same second

ok can you recommend me the best method to do that?

#

2- how can i create a payment link for the direct charge?

#

so if i want do this i can create a checkout sessions and at the stripe webhook i can create issue refund?
Why are you talking about refunds here?

I mean at the stripe webhook function i check the user that made the payment correctly and then make an issue refund to his account

clever thistle
#

I mean at the stripe webhook function i check the user that made the payment correctly and then make an issue refund to his account
I don't get it. When someone makes a payment, you want to refund it immediately? What's the point?

iron pecan
clever thistle
#

I'm sorry I'm confused.
If you create a Checkout Session without connect, the money goes to your Stripe account.
If you create a Checout Session with a Direct Charge, the money goes to the connected account.

iron pecan
#

i am sorry i know it is very complex ๐Ÿ˜‚

iron pecan
clever thistle
#

In think you are confused.
When you create a Checkout Session, by default it is created on your own account. If you want it to be created on the Connected account (what we call a Direct Charge): then you create the Checkout Session with the Stripe-Account header as explained here: https://stripe.com/docs/connect/authentication
So in both cases you create a Checkout Session, the only different it where it's being created.

iron pecan
#

okaaay got it

#

thank you really for helping me mr.soma