#onkel_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/1280437065938636812
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Whops, i hit enter to soon.
checkout session id: cs_test_a11J3wU9zqPFtzDbDbzNmssQL4rVuNMah5AwiMzzmVy82el2VKF9YMcWcT
Should i create the order on another event? e.g. charge.succesfull?
Or is there a way to get the receipt_url from checkout session ?
hi! there's no async-ness to it so the ID should be available immediately. You're probably using the wrong API keys/authentication. I note this is a Connect payment so your probably forgot to make the request on the connected account : https://docs.stripe.com/connect/authentication#stripe-account-header
arh, yes your right... forgot the connect account id!
i got the receipt url now ๐๐ผ
Is there a way to get it as pdf?
unfortunately no, this is a common feature request but not something supported today; the intention is you just share the URL with the end-customer and they can download from there
okay. so the url is permanent?
also, the hosted checkout was in danish, but the receipt is in english. doesnt recepits have localization?
I'm not sure if it's permanent but it's guaranteed that it's valid if you retrieve the CheckoutSession object from the API and access the URL at that point.
for localisation, see the link; it depends on the locales set on the Customer object
https://docs.stripe.com/receipts?payment-ui=checkout#localization
The receipt is still english, even though the customer locale is set to "da" and the customer billing adress i danish, my browser locale is also set to danish. Can i be that the test credit card originates from USA?
https://dashboard.stripe.com/test/connect/accounts/acct_1Ps3QUR3vYtB7my3/payments/pi_3PusPCR3vYtB7my31ver2e5E
Using the danish test card doesnt seem to help either: 4000002080000001
Hey! Taking over for my colleague. Let me catch up.
Thanks. you only need to read the part about receipt locale ๐
it's because this didn't create a Customer object. The short answer here is pass https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-customer_creation as "always" and then it creates a Customer using the locale you pass to Checkout, and receipts for that Customer have that locale
so its not possible with "guest" customers?
Nope, you'll need a Customer
okay ๐ i'll try asap.
Happy to help!