#oxmarco_connect-webhooks
1 messages · Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- oxmarco_connect, 6 hours ago, 68 messages
- oxmarco_code, 1 day ago, 57 messages
👋 Welcome to your new thread!
⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1247589843505119262
📝 Have more to share? Add details, code, screenshots, videos, etc. below.
oxmarco_connect-webhooks
Hi, I was talking to stripe support earlier today, they recommended some changes to the codebase and I applied them. Now somehow I cannot receive webhooks anymore
@desert scroll What exactly did you change though?
but the interesting part is that I can't see any call on the webserver (nginx) nor on stripe dashboard either
I don't think it's related to code tbh
as I would see the invocation on the webserver log
I used "import livemode endpoints", and changed the secrets
I'm sorry what do "import livemode endpoints" mean?
it's a feature on the stripe dashboard
it adds the same endpoint used on prod for the testing env too
Gotcha. So what's the issue? Do you have a Connect WebhookEndpoint?
YEs
I am creating connected users
stripe.accounts.create
then redirecting them to stripe.accountLinks.create
Please answer my specific question: do you have a Connect WebhookEndpoint
and once onboarding is complete, I don't get any webhooks
I set up an endpoint here
Are you a developer writing code yourself?
yes
last time that I set that up it was quite straightforward, but with the new dashboard design I think I am missing something
yeah you're in Workbench which is a new UI I don't have access to. What you need to do is create a Connect WebhookEndpoint. I keep bolding that Connect word because it is crucial. It changes the way the WebhookEndpoint works and I assume you haven't created the right one
I'm not sure because you're on that new UI I've never used unfortunately. But when you create the WebhookEndpoint, there has to be a way in the UI to make sure it's the Connect version
excellent
the new UI is quite confusing, I am sorry
is there a way to wipe all test connected accounts I created?
https://dashboard.stripe.com/test/developers there's a button at the bottom of that URL for me
I have to run so @celest wyvern is taking over. I think you have a sandbox because of Workbench, it's unfortunately all new, and none of us know much about this. You might be better off talking to our support team for 1:1 help at: https://support.stripe.com/contact
anyway not an issue
one last thing
stripe.accounts.create({
email,
country: 'DE',
controller: {
losses: {
payments: 'application',
},
fees: {
payer: 'application',
},
stripe_dashboard: {
type: 'none',
},
requirement_collection: 'application',
},
capabilities: {
card_payments: {
requested: true,
},
transfers: {
requested: true,
},
},
business_type: 'individual',
business_profile: {
mcc: '5815', // digital_goods_media
url: `https://example.me/userProfile/${userId}`,
},
tos_acceptance: {
date: Math.floor(Date.now() / 1000),
ip,
},
});
I tried removing country but it defaults to my company country
👋 hopping in here! Yeah I believe that behavior is expected - if you look at our API reference you can see it says default is your own country
https://docs.stripe.com/api/accounts/create#create_account-country
I noticed that on the docs, I was hoping there was a way to let users set up their country on the Stripe-hosted onboarding?
Have you tested it out fully? When I tried it on my end it defaults the country to US, but in the hosted onboarding page it gives me the option to change it
Hmm it must be because of one of the other attribtues you're setting - give me a minute to see which one it may be
I tried setting country to 'it', whatever I try it stays fixed
Agh, yeah when I was testing I was created a different Account type, which is why it allowed me to change it - with the specific account type you're working with you need to be collecting the country upfront because it gets locked in
got it
thanks for pointing that out
is there any way I can get a connected account just by checking email?
Unless you store that information on your end, I don't think there's an easy way to get it - we don't have a way to list accounts be email, so if you wanted to rely on Stripe you'd have to list all your connected accounts (https://docs.stripe.com/api/accounts/list) and then do your own filtering based on the account email (https://docs.stripe.com/api/accounts/object#account_object-email)
ok it makes sense
too bad I can't let user set their country
where can I find the country restriction on connected accounts?
What restrictions are you referring to?
Gotcha! I don't believe we have a list of blocked countries, but we do have an API that gives you the list of countries that are supported https://docs.stripe.com/api/country_specs