#dzmitry_error

1 messages · Page 1 of 1 (latest)

hidden perchBOT
#

👋 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/1416051259194081432

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

atomic schooner
#

I don't understand the sequence here, can you say a bit more?

#

Can you share an example checkout session id where you observe this?

#

It sounds like you're ending up on a checkout session URL that's already finished paying

#

I assume you expected to be redirected to your success_url instead?

versed socket
#

For testing payments, I'm using cards that require 3D Secure (screenshot 1). After initiating the payment, a 3D Secure window appears (screenshot 2). However, after clicking "Complete," I'm redirected to a page with the message, "You're all done here. You've either completed your payment or this checkout session has timed out." (screenshot 3). When looking at the events sent to the webhook, it shows that the payment was declined immediately, without waiting for the 3D Secure response.

atomic schooner
#

How are you creating this checkout session or otherwise entering this flow?

versed socket
#

Yes, I'm using this API.
Here’s the code:
stripe.checkout.Session.create(
customer=customer_id,
payment_method_types=["card"],
mode="subscription",
line_items=[
{
"price": price_id,
"quantity": 1,
}
],
success_url=f"{base_referer_url}{config.success_url}/?session_id={CHECKOUT_SESSION_ID}",
cancel_url=f"{base_referer_url}{config.cancel_url}",
consent_collection={"terms_of_service": "required"},
custom_text={
"terms_of_service_acceptance": {
"message": "I agree to the...."
}
},
)

In the logs from previous tests, I found this session_id:
cs_test_a1Ybmq6Jx71j1MVKzLV75Y8FjtGy3ZQaEzpFf8YryHjqIJu1WCLDzAMUV5

atomic schooner
#

thanks, taking a look

#

Can you create another sandbox session so I can try it out?

versed socket
#

Okay, I'll create another session now.

#

cs_test_a1bav1w9CFc6da4ACcqVNvVzM7Bx2sNrJjdpUq7LaLLE3vV2blomAo0zEM

atomic schooner
#

oh

#

Do you expect that to be happening?