#mlo300
1 messages · Page 1 of 1 (latest)
Hi there
Yep
You would use payment_intent.succeeded for this
I can also use it with external checkouts right?
n the stripe dashboard you only add the webhook URL, so whatever URL you mention you will get data over there irrespective of platform.
Ok thank you very much, one last thing is there an api that allows me to add it automatically?
An API to add the webhook endpoint?
You can create through the API yes, https://stripe.com/docs/api/webhook_endpoints/create
But you still need to write code for your Webhook handler
Ok thanks because I would like to use webhooks and then connect with stripe connect with express accounts and automatically send payments to affiliates whenever an order comes in
That should work fine as long as your Connected Accounts are in the same region
You would use Separate Charges & Transfers: https://stripe.com/docs/connect/charges-transfers
Ok thanks because I would like to use webhooks and then connect with stripe connect with express accounts and automatically send payments to affiliates whenever an order comes in
How can I test webhooks in localhost?
To also test stripe connect how do I need to have two stripe accounts?
You can use the CLI to test webhooks: https://stripe.com/docs/webhooks/test
And you would create test Connected Accounts to test with, yes.
to get two accounts connected with connect what can I use?
You would just follow our docs for creating and onboarding an account
Which type of Connected Accounts do you plan to work with?
express
Okay so you want to follow https://stripe.com/docs/connect/express-accounts
I am trying to create a connect account from the dashboard but it doesn't let me do it I can't understand could you give me some explanation please?
Going to need a lot more info about what "couldn't do it" means
Like do you see an error?
What does "it doesn't let me do it" mean?
Can I connect two accounts with connect for example via api without using oauth2?
Yep you create the Account using the API like in the link I shared above
A technical question about stripe if a customer buys a product for example 20 euro I can immediately turn the 20 euro back to connect?
you can transfer it to a Connected Account, yes.
in test way I created a payment to the client of 40 euros, which was successful.
Then I tried to transfer them to connect and it tells me available balance 0 euro how can I solve?
You either need to use the Available balance test card (https://stripe.com/docs/testing#available-balance) or you need to set source_transaction: https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-availability
im using the card 4242 4242 4242 4242
So since you aren't using the available balance card as suggested above, you need to set source_transaction
In live mode when money comes in from a customer who paid by card it becomes immediately available how does it work?
Well funds don't settle immediately
So via source_transaction indicating for example customer's payment id of say $20 I can transfer the funds even though I don't currently have them available in my stripe account?
Yeah because it just pulls the funds from the payment intent itself
ok the itent of payment must be successful?
yep
Perfect can you send me the doc to create a webhook node that allows me to receive, notification of when a payment is successful?
another question but when I transfer money to connet via the source_transaction method does the funds transfer time go down?
Should be the same
I was told that there is a way to be able to lower ti times through bees don't you know what it would be?
Idk what you mean
I still recommend using one of these cards though: https://stripe.com/docs/testing#available-balance
The transfer should be immediate
I found this
Yes but I would like to understand one thing.
Because I don't remember where in the documentation but I read that by transferring money to connect you could decrease the waiting time in the first account before the funds are available it takes 7 days while on connect two but I don't remember where if you know could you tell me?
There shouldn't be a waiting period if you use the cards I linked
They bypass the pending balance
Yes of course. but I am talking about livemode.
Well in live mode you can't bypass the pending balance
I don't want to bypass it but wait less.
I can't remember where but the wait times change between the connect account and the main account
I'm not sure. We're not really experts with settlement times in here anyway
Recommend asking our support team: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
sorry I misspoke once I move the money to the connect the money will have the wait time of the connect?
That depends on whether or not you pass on_behalf_of
However, this during the payment intent how can I do it later?
on_behalf_of needs to be set on the payment intent
Yes but I can't edit the checkout but only the post
No I need to set it post payment completed
You can't do that
on_behalf_of indicates where funds settle
You can't set it after the funds have been captured
We need to know where to settle the funds before payment is captured
Can't I change payment intent later?
What do you mean?
I am using the checkout of shopify and I have no way to go to work on the payment intent, so I would need other options to use this on_behalf_of parameter
Hopping in here since codename_duchess has to head out soon
If you're using Checkout, then really the only option is to set payment_intent_data.on_behalf_of when the session is created - there's no way to modify it afterwards
I'd recommend talking to shopify to see what they recommend/see if they offer any alternatives
Or you'll need to move to a different solution/plugin
ok is there an event on webhooks?
There's many different types of events - what kind of event do you need?
There is no event that allows me to create it shortly before the transaction is actually executed
No, there's no event for that with checkout sessions
Or if there is a way to tell stripe that by default all the payment intents it will make as a base will start from that
No, this is something you HAVE to set in your code - there's no default or anything
So I can't change it using an update or maybe configure stripe so that every time someone attempts a payment
Make it in a way and manner that they have to confirm I by hand don't know however there has to be a way
Again, if you're using Checkout then the ONLY way to do this is by setting it when the Checkout Session is created