#Kumar-Shipping

1 messages · Page 1 of 1 (latest)

blazing karma
silent hawk
#

I am trying with the below code but its not working var options = new Stripe.CustomerUpdateOptions
{
Shipping = null
};

#

var service = new Stripe.CustomerService();
Stripe.Customer customer = service.Update(stripeId.stripeCustomerId, options);

blazing karma
#

Can you send me the request ID?

silent hawk
#

req_DLnSsxZBbTZvUe

blazing karma
#

This request returns 200. Can you send me the request ID that returns an error?

silent hawk
#

there is no request with error

#

all request returns 200

#

with post body is empty in this request req_fxKpaamWFSjs1E

#

*why?

blazing karma
#

then what do you mean by it's not working ?

silent hawk
#

I want to remove the shipping address but its not updating the shipping address with null

blazing karma
#

But if you check the response, the customer's shipping is already null.

silent hawk
#

req_fxKpaamWFSjs1E

#

please check this one

blazing karma
#

OK, can you try setting the shipping to an empty String? (i.e., "")

silent hawk
#

Okay let me try

silent hawk
#

It won't let me set as "" string because it's a ShippingOptions object

blazing karma
#

Trying using an empty ShippingOptions object

silent hawk
#

I have already tried

#

nothing works

#

{
"shipping": {
"name": "",
"phone": "",
"address": {
"city": "",
"country": "",
"line1": "",
"line2": "",
"postal_code": "",
"state": ""
}
}
}

blazing karma
#

OK. I'm not familiar with .NET, but setting null with Stripe Node.js SDK can make the shipping null.

silent hawk
#

if I am using the above object then there is some data in the request POST body but if I am using null instead of empty string then there is nothing in request POST body

blazing karma
#

I guess the .NET SDK remove the data in POST body if the option object is null.

silent hawk
#

yes

blazing karma
silent hawk
#

Is there any other to remove shipping address

#

*way

blazing karma
#

I don't have another solution rather than finding a way to set shipping to null.

silent hawk
#

Okay, Thank you Jack!