#educatedthug

1 messages · Page 1 of 1 (latest)

viscid jungleBOT
serene plume
#

Hi there!

#

What do you mean by "email on a srouce"?

#

Maybe you can share the object ID you are trying to modify?

#

@tardy tendon let's chat here

tardy tendon
#

Okay here

tardy tendon
#

I’m trying to update the customers email here. How do I do this ?

serene plume
tardy tendon
#

I have tried. I don’t know how to edit the email part alone

serene plume
#

Something like this:

stripe sources update src_xxx \
  -d "owner[email]"=foo@bar.com
tardy tendon
#

Got this

serene plume
#

I just deleted your message, it contained your secret key

#

I strongly recommend you to roll your secret key now, since this is a public channel

tardy tendon
#

Okay

serene plume
#

If you try this what happens exaclty?

stripe sources update src_xxx -d "owner[email]"=foo@bar.com

tardy tendon
#

I got this

viscid jungleBOT
serene plume
#

Again I would recommend to delete that image and roll your secret key, it's possible to read it...

tardy tendon
#

I rolled it already

#

This is the old key

olive mica
#

just trying it on my account and it seems to work well.

tardy tendon
#

Now I got this

#

I’m sorry if my questions sound somehow, I’m a novice at this thing and stripe customer service asked me to do it, regarding a refund with my customer

#

@olive mica

olive mica
#

yeah I'd push back and ask them to change it really, not reasonable for us to ask you to use CLI specifically.

#

but anyway it's because you need to make the call in livemode using your livemode API key instead.

#

not sure immediately how you do that in CLI(I usually would recommend never doing that), looking now....

tardy tendon
#

And it still didn’t work

olive mica
#

what does "didn't work" mean, what specific error message did you get?

tardy tendon
#

Sources is not recognized as an internal or external command, operable program or batch file

olive mica
#

hard to say without seeing the exact command, that sounds like a typo or a shell issue.

```stripe sources update src_xxxx -d "owner[email]"=foo@bar.com --api-key="sk_live_xxx"`

works for me.
tardy tendon
#

I think it worked.

#

Is their a way to confirm.

#

Actually I refunded a payment to a customer who paid via ach credit. And according to stripe rules, if a customer pays via ach credit, and I issue a refund, the customer will be contacted via email to provide their bank account details where they want the refund to be deposited.

#

In my case, the customer didn’t get an email from stripe. So stripe rep asked me to update the email of the customer on the source

olive mica
#

yep, that is how refunds on ACH Credit work, and yes, makes sense

tardy tendon
#

Is there a way to resend that email to the customer now

#

Or only the stripe rep can do that?

olive mica
#

I don't know sorry. I'd ask Support.