#geeky-mechanic_api
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/1245027402472493158
π Have more to share? Add more details, code, screenshots, videos, etc. below.
I did input a payment_intent.receipt_email in my request, however I am not receiving the receipt in test mode, and just want to validate and see what the receipts looks like
I am using a checkout session to process payments, I managed to send myself the reciept from the dashboard, however I am not recieving it automatically despite putting the reciept_email param in my request :
return SessionCreateParams.builder()
.setCustomerEmail(checkoutDto.customerEmail())
.setSuccessUrl(successUrl.replace("{orderId}", checkoutDto.orderId().toString()))
.setCancelUrl(cancelUrl.replace("{orderId}", checkoutDto.orderId().toString()))
.addAllLineItem(lineItems)
.addPaymentMethodType(SessionCreateParams.PaymentMethodType.CARD)
.setMode(SessionCreateParams.Mode.PAYMENT)
.setExpiresAt(Instant.now().plus(expirationHours, ChronoUnit.HOURS).getEpochSecond())
.setAutomaticTax(
SessionCreateParams.AutomaticTax.builder()
.setEnabled(true)
.build()
)
.setPaymentIntentData(
SessionCreateParams.PaymentIntentData.builder()
.setTransferGroup(checkoutDto.orderId().toString())
.setReceiptEmail(checkoutDto.customerEmail())
.build()
)
.build();```
Hi there π from the page you linked to:
RECEIPTS IN TEST MODE
Test payments created using your test API keys donβt automatically send receipts. Instead, you can view or manually send a receipt using the Dashboard.
As far as I'm aware, the only time receipts might be sent automatically in testmode, is if the email address provided exactly matches the email address of the owner of the Stripe account. But, I'm not exactly sure when that trick allows test emails and when it doesn't, email isn't something we are the most familiar about in this forum.
π€¦ββοΈ damn...
I see, I'll just trust that it works then, and grab myself a cup of coffee when launching just in case π
I'm so glad you said that, I've been so busy answering questions I forgot there's still coffee in the pot!
Seems like it doesn't work for this use-case, because I did test it out with my email (which is also my stripe email and I'm the owner of the business account i'm testing) !
Hahaha we'll I guess my question wasn't a complete waste of time then! π
I pulled out your message with the email just in case it was a real email, since this is a public forum.
Ahhh yeah, quick thinking thanks a lot, and thanks for the support as well!