#martinfo_unexpected

1 messages ¡ Page 1 of 1 (latest)

umbral fractalBOT
#

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

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

sonic acorn
#

I create the checkout session like this:
session = stripe.checkout.Session.create(
mode="payment",
payment_method_types=["card", "paypal"],
# payment_method_types=["card", "paypal", "alma"] if shipping_address.country_id not in ["GF"] else ["card", "paypal"], # TODO: remove the if when alma is available in GF
line_items=line_items,
metadata={},
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,
)

#

The stripe api key used is the key of the platform account

red plover
sonic acorn
#

req_KkeRBLmOPMA1B9

#

The checkout session is created for a platform account, not a Connect account

#

but the error message tells about Connect account...

red plover
#

thanks for sharing this

#

if you're not planning to later create a transfer to a connected account, then you should remove this parameter and then you won't get this error

#

we'll look further into the details of this error on our side though! thanks for flagging this with us!

umbral fractalBOT