#martinfo_connect-sandboxes
1 messages ยท Page 1 of 1 (latest)
๐ 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.
Hi, yes - you can use this flag: https://docs.stripe.com/cli/trigger#trigger-stripe_account
It would look someting like this after the event trigger --stripe-account acct_123abc
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
You can set a Connect webhook endpoint: https://docs.stripe.com/connect/webhooks and listent to all connect events there
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.
So that means I'm forced to use a tool like ngrok to be able to test locally?
Let me look and test on my end to be sure, hang tight
ok thank you
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?
Yes
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
Hm, --forward-connect-to indicates that connect piece
yep...
I tried a payment to my master account, I received events.
I tried a payment to a connected account, I received nothing.
Can you share the connect event that you expect there? After you run --forward-connect-to, what do you see?
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)
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?
ok I'll try it ๐
like this ? : stripe listen --forward-connect-to localhost:{PORT}/webhook --forward-to localhost:{PORT}/webhook
(just to be sure)
Yup!
I see my event checkout.session.completed on stripe website, in the connected account.
But don't receive any webhook call
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?
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)
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?
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
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.
this is the account : acct_1RmDXgPvrXjcTVpY
That's only one Account, is that the Platform or the Connected Account? And what is the Account ID for the other account involved?
I have one master account "Dommarker.fr" and 4 sub-account (connect I think)
Maybe I'm wrong ?
Ah, yeah, that's not Connect. You just have multiple Stripe Accounts (maybe they're sandboxes, I'm not sure without english labels ๐ )
yes they're sandboxes
So, do I have the possibility to transform a sub account to Connect ?
in test mode
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.
yes that's what I'm asking for
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?
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
Okay so what you will need to do is treat them like separate Stripe Accounts that you want to connect to your Platform
but I see that my connect account is "limited" even in test mode
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
But...to get back to the issue of linking your sandbox accounts, you need to use Oauth to connect them to your account. We describe how to do this here: https://docs.stripe.com/connect/oauth-standard-accounts
this is the Connect account linked to the stripe account: acct_1RmDXgPvrXjcTVpY
it's limited
even if I'm in test mode
You need to review the account to see if there are any missing requirements.
ok I'll check that
My CEO did the requirements in production mode
So in the test modes it should be ok no ?
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
ok ok