#dimi-cli-forward
1 messages ยท Page 1 of 1 (latest)
hi ๐
if I try with stripe listen --forward-to https://localhost:443
then I get a url of http://https://localhost:443
I don't think it will work if you don't have a valid TLS certification
it's localhost, you should configure it to support http I would say
hum
I just tried and it works fine for me
I did stripe listen --forward-to https://localhost:8888 and get events forwarded to my localhost server (which fail since I don't support HTTPS)
oh
--skip-verify
Hey, can I ask you another q?
about Custom Connect accounts onboarding
of course
(protip: never send pictures of code ๐)
oh ok
Discord has code formatting, wrap between three ` before and after!
const link = await this.stripe.accountLinks.create({
account: stripe_account_id,
type,
refresh_url,
return_url,
collect: "eventually_due",
});
I've used it a lot, just use slack @ work so I've forgotten
So anyway, the issue is, as part of creating the accounts at Stripe, before linking them
I am sending the following:
capabilities: {
transfers: {
requested: true,
},
}
and
country: "GB",
business_type: "company",
however, as part of onboarding, for some reason, Stripe's custom onboarding flow
doesn't ask us for bank details to create and verify an ExternalAccount for that user
What's the account type? You said Express but we do ask for bank account details during onboarding. So I'm guessing you are using custom instead
yes, custom ๐
๐
ahhhh sorry, I got a parallel thread about Express ๐คฆโโ๏ธ
And so yeah, we do not collect bank account details for Custom accounts today. This is something you, as the platform, have to collect yourself
oh ok
so we can't use the custom onboarding from stripe for those
we have to use the api
however, we can still rely on webhook updates for whether this external account was verified and can receive payouts now?
there's no "verification" for bank account so no
but the rest is correct, you just won't get any event about the bank account being verified
thanks!
do you know any other causes of
No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe? https://github.com/stripe/stripe-node#webhook-signing
besides not passing a raw body, I can confirm the body is a Buffer
const constructed_event = this.stripe.webhooks.constructEvent(
body,
signature,
this.secretsService.get("stripe_webhook_secret"),
);
and the signature is the stripe-signature header
I can confirm that the secret is also correct with the webhook config at the stripe web dashboard
and it's in test mode
could it be because I am sending the event from a local test with stripe-cli?
it is almost and utterly always the raw body :p
there are dozens of code examples that subtly differ based on your stack/environment for stripe-node
but if it's not that, it's usually that you have the wrong webhook secret
ah sorry I missed your reply my bad