-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deleting Metadata #637
Comments
hmm - so what is your code you are passing to the Update function for customer to remove it? |
I just sent the new metadata Array with the CustomerId
|
Do you want to erase the metadata entirely? Have you tried updating with an empty dictionary? |
no just one specific like how you can in the stripe.com dashboard |
I would check with Stripe first to see how this is done with CURL... I'm not sure what the logic is to remove an entry. Check with them and then we can figure out how to support it (or if it already exists) with Stripe.net |
Well it turns out i don't need to mimic that feature anymore but ill see what I can figure out for future reference. |
I pinged Stripe in the IRC room - looks like you can just supply a blank value. So in this case, you would pass var metadataArray = [ Name : "Ray Barone" , OftenSays : "" ] ? edit: feel free to ping again if this doesn't work - support verified with CURL, so Stripe.net should pass the same thing. If it doesn't - re-open and I'll fix 👍 |
Can you pass |
@xt0rted I think it has to be an empty string |
I wrote a test for this - null and string.empty works. https://github.com/jaymedavis/stripe.net/pull/643 The build should be done soon... |
Thanks @xt0rted - I think null is actually a little cleaner. |
All set with tests and readme updates 👍 Thanks much!! |
How do I delete the Metadata?
say I the client wanted to remove "OftenSays" from
var metadataArray = [ Name : "Ray Barone" , OftenSays : "Thatttttt's right" ]
in the javascript I would remove it and send over the New Array to the API
I tried the Update() function as shown above . It succeeded but it wont remove it. any help would be nice
The text was updated successfully, but these errors were encountered: