#Jake M - test emails
1 messages · Page 1 of 1 (latest)
Interesting, I have been able to receive them when trying to test this recently. How are you trying to take ACH payments here? Is this the Stripe hosted Checkout page or your own page that uses Elements?
On my own page that uses Elements and creates a SetupIntent server-side.
Also I am using confirmSetup (not collectBankAccountForSetup) and passing the email via payment_method_data
Can you show me your client side code for that?
const stripeRes = await stripe.confirmSetup({
elements,
confirmParams: {
payment_method_data: {
billing_details: {
name: values.name,
email: values.email,
},
},
return_url: ${returnUrl}?payment_proportion=${payment_proportion},
},
});
^ This is the bit that is calling confirmSetup
Thank you. Seeing if I can replicate this and get a test email...
I should note this is using react-stripe-js
Interesting, that code is working for me. Can you send me a SetupIntent ID that you saw this with?
Here is a setup intent ID that I used manual verification on:
seti_1KygtPEeqVASFOA5mPUAHpf5_secret_Lg2zVCemQoT0N4k8miBnWDWkThWu9yo
And here is the corresponding event in my test env for that requires verify_with_microdeposits
evt_1Kyh2nEeqVASFOA5KFKkA6Xl
All of these are in my test env
Thank you, will check in to those from a second
Interesting, confirming this with a similar email worked for me.
I will check our logs to see if I can get some kind of a confirmation of an email being sent to your email
And just to double check, is your email gmail based or it uses something else that recognizes the name+some_thing@email.com format?
I am not seeing a record of us sending you an email. Sounds like I didn't quite reproduce what you are doing closely enough. Looking now to try to figure out what the difference is
Ok. Yes so I am setting up a setup intent on our server side with
Stripe::SetupIntent.create(
payment_method_types: %w[card us_bank_account],
customer: stripe_customer_id,
metadata: stripe_metadata
)
and then passing the setupIntentSecret to our frontend, and then using PaymentElements and confirmSetup
Do I need to be using collectBankAccountForSetup? What is the difference between these?
I've been getting the test email when just using confirmSetup
Ok so confirmSetup should be good to use with setting up ACH bank accounts for future payments?
Yes, as far as I can tell it is. Still trying to spot the difference between what you did and what I did
Do I need to activate my account before I get emails in test mode?
I don't think so but will check in to that.
As a quick test would you mind if I try putting your email in to my test page to check if that sends you an email properly?
Thank you, will try sending an email to one of those
It looks like that actually may have sent
You might have an email now with a title like
[TESTMODE] Confirmation of direct debit authorization for Real Fake Shops
yes, I see those emails
I don't understand why I wouldn't be getting emails when I am testing, then
Exactly what I am trying to figure out. I don't remember having to turn on any settings for this
And I don't even see us attempting to send you emails for this before my test just now
I am not finding a setting that would prevent this. I think it may be that you need to submit your account details. Would that be feasible for you to do with this account at the moment?
A colleague actually just confirmed that your account does need to be activated to test this. If you can't or don't want to do it on this specific account for some reason you may just want to create another purely for testing
Ok, so to confirm, in order to receieve these ACH emails in test mode, I need to activate my account? And I am only not receiving them because I haven't activated? I set up this account purely for testing, as my company already has production accounts set up for other reasons.
HI there 👋 taking over for @white yarrow. Your understanding seems to be correct.
Ok, thank you so much for the help.
FWIW, I think it may be worthwhile adding a note that you need to activate your account to receive emails even in test mode here:
https://stripe.com/docs/payments/ach-debit/set-up-payment?platform=web