#stricks - direct charges

1 messages · Page 1 of 1 (latest)

haughty haven
#

Hey, apologies for the delay things are still a bit crazy. When you create a Direct charge, it will be on the connected account, not your platform account. Have you checked on that account for the charge?

timid oxide
#

ok, I see it got created in the connected account, but how can I submit the payment using that intent in my platform?

haughty haven
#

Can you tell me a bit more about what you mean by that? Your platform can still try to confirm the payment but you will still need to use the other Stripe account's ID to confirm it

timid oxide
#

What I'm doing here is:
I create the payment intent in the backend, getting a client_secret.
Then when the user finishes filling the payment method information he clicks on pay and I try to process the payment intent using the js stripe.confirmCardPayment(client_token_here) - where I got an error telling me that this payment intent doesn't exist. I see now that the intent is created in my connected account, is there a way to use the 'stripe.confirmCardPayment' for it?

#

hmm other problem that I see can arise from this, the payment.success webhook will be trigger in my account or will be sent just for the connected account?

worn bane
#

HI 👋 I'm stepping in for @haughty haven given me a minute to catch up

#

You can use confirmCardPayment for this PI but you need to initialize Stripe.js using the Publishable Key from your Connect Account.

timid oxide
#

Hi Snufkin, about initialize with the connected account Publishable Key, can I retrieve that key from the connected account or it require direct contact with the owner?

worn bane
#

Well how is it that you are trying to confirm payment methods for PI created by a Connect Account? I'm not sure how this integration is set up

timid oxide
#

Let me try to give a broad view of the implementation. I want to use connected account in my system, so the user can connect his existing stripe acc ('Standard') to our platform. When I'm creating the PaymentIntent I use the 'direct charge' method to create the PaymentIntent, so for what I understand now, this PI is created in my connected account (let me know if I got something wrong).
Then the customer provides a Payment Method that I update the PI with, and when the customer clicks on the page to 'pay' I trigger the Stripe.js confirmCardPayment.

sharp crag
timid oxide
#

oh ok thanks!

#

about the webhooks that this PI trigger (like payment.success) it is still calling the webhook from my account, not the connected account, correct?

worn bane
timid oxide
#

hmm couldn't find how to configure a webhook for a specific connected account? I tried searching all possible events and no connected account event is in there, I'm looking to the right place?

worn bane
#

It's not specific to a single Connect Account. And it's not retroactive. You set up the endpoint and listen for Connect Account events going forward

timid oxide
#

oh ok, so it works the same way with connected accounts as to when I do a charge from the platform account, right?

worn bane
#

As far as the events being triggered, yes the events triggered and the data sent in each request will be the same

timid oxide
#

great, thanks for the help