#Rob Coursera-followup
1 messages · Page 1 of 1 (latest)
Thank you!
Thanks for your patience!
Test mode emails are really tricky. When you're in test mode, the only emails that our system will generate and send are ones that are addressed to the same email address associated with the owner of the account.
Okay cool, so that aligns with the first help that I got. I did try this, I checked who the owner of our stripe account was and I created a payment against a customer with their email address
but when I did the ACH refund, they did not receive any email
Is there any way you could investigate? Any idea why the email would not have sent?
Hm, I know I've run into some emails not being sent in test mode during my testing as well. Do you have an ID for the charge, payment intent, customer, or some other object that I can look into and see if anything jumps out at me?
Hello I'm around and I know for a fact this works
Do you have an example source id I can look at?
Yep let me grab some links!~
So this is the refunded payment https://dashboard.stripe.com/test/payments/pi_3JhgMeHz07ypukwL0NuLfc7F
And this is the source https://dashboard.stripe.com/test/sources/src_1JhgMfHz07ypukwLFIJYR3IL
Let me know if you need more info!
(looking)
@wind ruin that Source doesn't do any of the things I recommended yesterday. The email is not the email of the owner of the account
The email will only be sent if owner[email] on the Source matches the exact email address of the owner of the account
Ah okay, so the confusion here was because when creating a customer in live mode, the source automatically has owner email address of the customer. However, when creating a customer in test mode, the source has owner email of "amount_0@stripe.com"
In addition to this, the only way to push funds to an ACH source, is to change the owner email address to something like "amount_5000@stripe.com"
Hence, the owner email of the source in question has something like that
it's not really that
you can put any email in the source in Test mode and it'll get $10 I think
the other trick is to get a different amount or push more money, which you don't need for this flow
Okay let me try updating the email to the real owner email address and see if it gets $10
Alright so far so good, let's see if the owner gets the email!
Thank you. that worked! I have a follow-up question
Is it possible to prevent this email from being sent?
no it's not possible
Just lurking in here :). It is possible to not have this email sent. You would set the source.receiver.refund_attributes_method to manual: https://stripe.com/docs/api/sources/create#create_source-receiver-refund_attributes_method. This would mean you would handle setting the refund details on the source yourself.