#martinfo_webhooks
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/1399711676298821774
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- martinfo_webhooks, 30 minutes ago, 45 messages
- martinfo_connect-sandboxes, 18 hours ago, 72 messages
I receive nothing
Hi
Can you share the event Id ?
What is the account Id that you are using for your stripe cli ?
The checkout session was creating using Stripe Connect headers,
cs_test_b1qN8VusLkfTBbbrvcXh7qOZbZRmLA610IlLwQVFggPs0IYqlmvqIgjEe0
right ?
Yeah due to inactivity (it was with me)
I told you I get back to you ^^
It will be closed due to inactivity in all cases
oh ok
no worries, you can always open a new thread
{
"object": {
"id": "cs_test_b1qN8VusLkfTBbbrvcXh7qOZbZRmLA610IlLwQVFggPs0IYqlmvqIgjEe0",
and the first message in this thread, have reference to all your old threads
this is the right id
listen --forward-connect-to web:8000/stripe/webhook/ --forward-to web:8000/stripe/webhook/
Why are you specifying the same url here ?
I have one endpoint that handle all the events
Between, you are not making a Connect request req_0MzZRfYL6rYwbF
what do you mean ?
Why are you specifying the Stripe Connect header in this request req_0MzZRfYL6rYwbF ?
You are setting the same platform account as the connect account id
this my code :
session = stripe.checkout.Session.create( mode="payment", payment_method_types=["card", "paypal"], line_items=line_items, metadata={}, stripe_account=settings.STRIPE_ACCOUNTS_IDS[ str(shipping_address.country_id) ], payment_intent_data={ "transfer_group": order_group.number, "statement_descriptor_suffix": f"O{order_group.number}", "shipping": { "name": shipping_address.name, "address": { "line1": shipping_address.line1, "line2": f"{shipping_address.line2} {shipping_address.line3}", "city": shipping_address.city, "country": shipping_address.country_id, "postal_code": shipping_address.postcode, "state": shipping_address.state, }, "phone": shipping_address.phone_number, }, }, client_reference_id=order_group.id, submit_type="pay", customer_email=user_email, success_url=request.build_absolute_uri( reverse( "checkout:thank-you", kwargs={ "order_group_id": order_group.id, }, ) ), cancel_url=request.build_absolute_uri( reverse( "payment_stripe:cancel", kwargs={"order_group_id": order_group.id} ) ), discounts=discounts, )
stripe_account is the account of the Connect
and I use the stripe key of the platform account
stripe_account=settings.STRIPE_ACCOUNTS_IDS[ str(shipping_address.country_id) ],
Here you are passing the account Id acct_1RmDXgPvrXjcTVpY according to the request Id req_0MzZRfYL6rYwbF. That Account Id is your platform account id and not your connected account Id .
Can you first fix this ?
Then we'll move to the webhook cli listener issue
Can you share the Checkout Session Id ?
Between, this is a frontend screenshot, can you inspect the Stripe API response ?
[INFO] <2025-07-29 11:33:51,479> /usr/local/lib/python3.12/site-packages/stripe/util.py:57 message='Request to Stripe api' method=post path=https://api.stripe.com/v1/checkout/sessions
[INFO] <2025-07-29 11:33:52,405> /usr/local/lib/python3.12/site-packages/stripe/util.py:57 message='Stripe API response' path=https://api.stripe.com/v1/checkout/sessions response_code=200
So the API is returning 200
yep
๐
cs_test_b1JqIW9wXJVr7BGbIlsQZ0ZH8oOogP6TSe04PxyPb1Atk2sEXienhre6le
The Checkout Session opens correctly
Between, this is better now, The connected Account id used is acct_1Rq8OpPvNb7urWXt
You have an issue in your redirection then
Can you try copy past the link returned by the Checkout Session: url
session.url ?
yeah
ok
and open it in your browser directly
yes it worked when I opened it in my browser
do you know why it's not working normally ?
I don't have visibility on your redirect logic. You should debug and follow the link, compare the results in each stesp in the flow
and see what makes the final redirect url changed from the original one returned by Stripe API