#mohamed.0344
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
Payment Links can't use inline pricing
you can use Checkout Sessions in that case if you prefer
can you please send me the link inside docs of checkout sessions?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
what type of Charges are you looking for? Direct or Destination?
direct
ok i want ask can i store the connected account id in the database, and does it expire or not?
@noble dove
please don't @ people every time you have a question, we will try to answer you asap
Account IDs don't expire and I don't see a reason why you shouldn't store them
got it, thank you for your help really
let me know if you need any more help
ok but after the user complete the payment, how can i make the payment link expire after the user complete the payment?
if you're using Checkout Sessions, you don't have to, since Checkout Sessions are meant to be used for single-use purposes
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?
if you're using Direct Charges, it will go to the Connected Account balance
ok but why i can't get any payment link that user can pay
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?
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?
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
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.
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
Read this guide on how to create a Checkout Session. And use the Stripe-Account header to make the requests on the connected account
https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=payment-sheet
https://stripe.com/docs/connect/authentication
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?
so when i do a checkout session the money goes to my balance right?, ok now i want to make the money goes to the connected account balance instead of my balance, but using checkout session not a direct charge
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.
ok so when i put Stripe-Account header the money goes to the connected account balance not my balance right?
i am sorry i know it is very complex ๐
ok but how i will put the checkout session and direct charge at the same time, can you show me an example ?
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.