#martinfo_connect-sandboxes

1 messages ยท Page 1 of 1 (latest)

mint ospreyBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1399381305774309437

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

fringe oar
#

It would look someting like this after the event trigger --stripe-account acct_123abc

near flower
#

yes this is to trigger an event manually, but I want to listen all events when I purchase on my local server

#

I know that's possible with the master account

#

but did'nt succed with connected accounts

#

I tried this : listen --forward-to web:8000/stripe/webhook/ --stripe-account acct_1RmDXgPvrXjcTVpY
But --stripe-account is not valid for listen

fringe oar
#

I need to confirm if it's possibel with the CLI. If you're looking to listen to all connect webhoook event you can create a Connect webhook endpoint.

near flower
#

So that means I'm forced to use a tool like ngrok to be able to test locally?

fringe oar
#

Let me look and test on my end to be sure, hang tight

near flower
#

ok thank you

fringe oar
#

I think it would look something like stripe listen --forward-connect-to localhost:{PORT}/webhook for all connected accounts. Are you able to give this a try?

near flower
#

ok I'll try

#

should I use the webhook_key of the master account ?

fringe oar
#

Yes

near flower
#

I can clearly see the event on my connected account (on stripe website). But nothing come when listen via stripe-cli.

#

It worked well when I had only the master account and with the flag --forward-to

#

with the flag --forward-connect-to I receive well event from the master account, but no event from connected account

fringe oar
#

Hm, --forward-connect-to indicates that connect piece

near flower
#

yep...
I tried a payment to my master account, I received events.
I tried a payment to a connected account, I received nothing.

fringe oar
#

Can you share the connect event that you expect there? After you run --forward-connect-to, what do you see?

near flower
#

payment_intent.succeeded or checkout.session.completed for example

#

After run --forward-connect-to, I see:
Getting ready...

Ready! You are using Stripe API Version [2020-08-27]. Your webhook signing secret is whsec_xxxxx (^C to quit)

solemn isle
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needs to step away soon. Can you try including both the forward-to and forward-connect-toin your stripe listen command?

near flower
#

ok I'll try it ๐Ÿ™‚

#

like this ? : stripe listen --forward-connect-to localhost:{PORT}/webhook --forward-to localhost:{PORT}/webhook
(just to be sure)

solemn isle
#

Yup!

near flower
#

I see my event checkout.session.completed on stripe website, in the connected account.
But don't receive any webhook call

solemn isle
#

When you say you don't receive a webhook call, does that mean you aren't seeing a request being made to your local endpoint? Do you see lines in the logs generated by the Stripe CLI showing the event coming?

near flower
#

I don't see request. And I don't see any logs by the stripe cli

#

it just stay like that :
Ready! You are using Stripe API Version [2020-08-27]. Your webhook signing secret is whsec_220672abc7fd35df79ceba959fb55259c15fa94f9aa70d8bb6086e6730ea1615 (^C to quit)

solemn isle
#

What is the ID of the checkout.session.completed Event?
What is the full stripe listen command that you're running?

Are you logged into the Stripe CLI using the same Stripe account you're testing with?

near flower
#

Id of checkout.session.completed : evt_1RpssEPvrXjcTVpYa7SZWmoi

#

listen --forward-connect-to localhost:8000/stripe/webhook/ --forward-to localhost:8000/stripe/webhook/

#

my server is running on port 8000

#

and my endpoint is correct too

#

It worked well when I had only the master account

solemn isle
#

What are the accounts you're using for your testing?

The Account that the checkout.session.completed Event you shared belongs to doesn't appear to be connected to any Connect Platforms.

near flower
#

this is the account : acct_1RmDXgPvrXjcTVpY

solemn isle
#

That's only one Account, is that the Platform or the Connected Account? And what is the Account ID for the other account involved?

near flower
#

I have one master account "Dommarker.fr" and 4 sub-account (connect I think)

#

Maybe I'm wrong ?

solemn isle
#

Ah, yeah, that's not Connect. You just have multiple Stripe Accounts (maybe they're sandboxes, I'm not sure without english labels ๐Ÿ˜… )

near flower
#

yes they're sandboxes

#

So, do I have the possibility to transform a sub account to Connect ?

#

in test mode

mint ospreyBOT
solemn isle
#

Trying to iron out some of the verbiage here. Connect is a product that is used when you need to involve third parties in your Stripe flows (such as vendors, service providers, etc).

When using Connect, you, as the owner of the Connect integration, operate as the Platform and are responsible for orchestrating things. Your third-parties connect as Connected Accounts, which are their own Stripe accounts that are associated with your Platform.

Please let me know if you think I'm mistaken, but what I think you're asking is whether you can connect a Sandbox account to a Connect Platform.

near flower
#

yes that's what I'm asking for

rugged eagle
#

Hi ๐Ÿ‘‹

I'm stepping in as my colleague needs to go.

#

Each Sandbox account, while they are linked to your main account, operate as totally independent accounts for the most part.

#

Just to be clear, Sandboxes are accounts that do not process real-world payments (no money actually moves). So are you looking to set up a way to test a Connect integration?

near flower
#

Yep. To be clear, I have 4 account that I'll like to connect with a Connect account.
I want to do test in sandbox mode

rugged eagle
#

Okay so what you will need to do is treat them like separate Stripe Accounts that you want to connect to your Platform

near flower
#

but I see that my connect account is "limited" even in test mode

rugged eagle
#

but I see that my connect account is "limited" even in test mode

What does that mean? From what I have seen, you don't have any Connected Accounts

near flower
rugged eagle
near flower
#

this is the Connect account linked to the stripe account: acct_1RmDXgPvrXjcTVpY

#

it's limited

#

even if I'm in test mode

rugged eagle
#

You need to review the account to see if there are any missing requirements.

near flower
#

ok I'll check that

#

My CEO did the requirements in production mode

#

So in the test modes it should be ok no ?

rugged eagle
#

no

#

That connected account is a Sandbox account.

#

It is entirely separate from any Live account

#

No changes to the Live account will impact the Sandbox account

near flower
#

ok ok