#bks_checkout-customer-id-email

1 messages ยท Page 1 of 1 (latest)

young shaleBOT
#

๐Ÿ‘‹ 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/1368964774666309775

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

flat dust
#

Here is the code that I have in server.py.

try:
session = stripe.checkout.Session.create(
#customer = f'{custid}',
customer_email=f'{payment_details[0].Email}',
payment_method_types=['card'],
ui_mode = 'embedded',
line_items=[
{
# Provide the exact Price ID (for example, pr_1234) of the product you want to sell
'price': f'{payment_details[0].PriceId}',
'quantity': payment_details[0].LicenseQty,
},
],
mode='subscription',
return_url=YOUR_DOMAIN + '/return.html?session_id={CHECKOUT_SESSION_ID}',
automatic_tax={'enabled': True},
)

unkempt pasture
#

Hi there ๐Ÿ‘‹ can you elaborate on what you mean by "page didn't load", since Embedded Checkout Sessions are embedded on your page? Is that your page not loading, or does your page render but the Embedded Checkout Session doesn't?

unkempt pasture
#

@flat dust just checking in to see if you're around still to give me more context about your concern?

young shaleBOT
grim cipher
#

@flat dust I'm going to close this thread for lack of activity. But I did want to tell you before I do that i think your problem is when you pass both the Customer ID and Customer Email.

If you want to pass the Customer ID you should not include the Customer Email. You can see this in the error that is returned

You may only specify one of these parameters: customer, customer_email.