#Ben Clum - Stripe Account

1 messages ยท Page 1 of 1 (latest)

visual star
#

Hi ๐Ÿ‘‹

#

Let me take a look

fallow olive
#

for some additional context, this is an express account in test mode

visual star
fallow olive
#

yes let me look

visual star
fallow olive
#

I made this request: p.processor.update_account("acct_1Ie3zCS69F8scC0K", {"business_profile"=>{"support_phone"=>nil, "support_email"=>nil, "name"=>nil, "support_url": nil, "support_address"=>{"city"=>nil, "line1"=>nil, "line2"=>nil, "state"=>nil, "country"=>nil, "postal_code"=>"1123"} } })

visual star
#

Right, as I was saying I think you need to pass empty strings, not nil

fallow olive
#

If i pass empty strings it gives me Stripe::InvalidRequestError ((Status 400) (Request req_pYiauu4crUwDUW) Invalid email address: )

#

looks like support_email gives the above error with an empty string, and support_phonegives this error for empty string: Stripe::InvalidRequestError ((Status 400) (Request req_VVCuAKHIIxaSIg) You passed an empty string for 'business_profile[support_phone]'. We assume empty values are an attempt to unset a parameter; however 'business_profile[support_phone]' cannot be unset. You should remove 'business_profile[support_phone]' from your request or supply a non-empty value.)

#

so are email and phone number not able to be cleared? even though they are optional fields?

visual star
#

I'm trying to reproduce on my end

fallow olive
#

any updates here?

visual star
#

Well that's irritating. So None (Python) or nil (Ruby) work for support_phone and support_email.

#

Sorry, more chatter than expected

fallow olive
#

so it's an issue with the ruby stripe cli?

visual star
#

Not necessarily, I think it has more to do with the phone number/email validation processes

#

Just confirmed in the Python library, passing None for support_address.city does not update anything

#

But passing an empty string "" does unset the billing address info

fallow olive
#

empty string seems to work for all the fields except for phone and email

visual star
#

Yeah, I think it has to do with the validation functions for those two fields

fallow olive
#

do I need to submit a bug report somewhere?

visual star
#

I can raise it as feedback internally and you can create a Github issue for the client library if you want.

fallow olive
#

thanks! I'll do that