#geeky-mechanic_api

1 messages Β· Page 1 of 1 (latest)

flint hawkBOT
#

πŸ‘‹ 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.

quick compass
#

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();```
surreal shell
#

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.

quick compass
quick compass
surreal shell
#

I'm so glad you said that, I've been so busy answering questions I forgot there's still coffee in the pot!

quick compass
quick compass
surreal shell
#

I pulled out your message with the email just in case it was a real email, since this is a public forum.

quick compass
#

Ahhh yeah, quick thinking thanks a lot, and thanks for the support as well!