#oxmarco_connect-webhooks

1 messages · Page 1 of 1 (latest)

split sableBOT
fierce heartBOT
#

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.

split sableBOT
#

👋 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.

lament forum
#

oxmarco_connect-webhooks

desert scroll
#

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

lament forum
#

@desert scroll What exactly did you change though?

desert scroll
#

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

lament forum
#

I'm sorry what do "import livemode endpoints" mean?

desert scroll
#

it's a feature on the stripe dashboard

#

it adds the same endpoint used on prod for the testing env too

lament forum
#

Gotcha. So what's the issue? Do you have a Connect WebhookEndpoint?

desert scroll
#

YEs

#

I am creating connected users

#

stripe.accounts.create

#

then redirecting them to stripe.accountLinks.create

lament forum
#

Please answer my specific question: do you have a Connect WebhookEndpoint

desert scroll
#

and once onboarding is complete, I don't get any webhooks

#

I set up an endpoint here

lament forum
#

Are you a developer writing code yourself?

desert scroll
#

yes

#

last time that I set that up it was quite straightforward, but with the new dashboard design I think I am missing something

lament forum
#

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

desert scroll
#

ok I will try

#

here?

lament forum
#

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

desert scroll
#

maybe this?

lament forum
#

yes!

#

that thing on the right is what you want

desert scroll
#

excellent

#

the new UI is quite confusing, I am sorry

#

is there a way to wipe all test connected accounts I created?

lament forum
split sableBOT
desert scroll
lament forum
#

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

desert scroll
#

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

celest wyvern
desert scroll
#

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?

celest wyvern
#

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

desert scroll
#

not for me

#

it can't be changed

celest wyvern
#

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

desert scroll
#

I tried setting country to 'it', whatever I try it stays fixed

celest wyvern
#

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

desert scroll
#

got it

#

thanks for pointing that out

#

is there any way I can get a connected account just by checking email?

celest wyvern
desert scroll
#

ok it makes sense

#

too bad I can't let user set their country

#

where can I find the country restriction on connected accounts?

celest wyvern
#

What restrictions are you referring to?

desert scroll
#

blocked countries

#

or not supported

#

for example (obvious) Russia and North Korea

celest wyvern
split sableBOT
desert scroll
#

ok perfect

#

that was all, thank you!