#martinfo_unexpected
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/1417431890461331597
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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
hey there! could you please share the request ID for the error you got?|
https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_KkeRBLmOPMA1B9
The checkout session is created for a platform account, not a Connect account
but the error message tells about Connect account...
thanks for sharing this
I can see your Create Checkout Session call includes 'payment_intent_data.transfer_group'
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-transfer_group
this is a Connect-related parameter, so it's likely that this is why our system treats the transaction as a Connect payment
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!