#heisend3rp
1 messages ยท Page 1 of 1 (latest)
Hi there!
What do you mean by "doesn't work"? Did you get an error message? If so, which one?
Nope, no error message.
When I update it to 'on_session' only the compatible payment methods will be rendered
When I update it to undefined it still shows only the payment methods that are compatible with on_session payments
ergo I think it is not updated
Have you tried setup_future_usage: ''?
caught IntegrationError: Invalid value for elements.update(): setup_future_usage should be one of the following strings: off_session, on_session. You specified: .
Tried it with null, didn't work
// @ts-ignore
setup_future_usage: null,
Error was from ''
null is same behaviour as undefined
Hello ๐
Have you tried updating the elements with just an empty object and see if that helps?
elements?.update({});
doesn't change a thing
Interesting.. Give me a moment to look around..
Already found something? ๐
have not yet, my apologies. Server is running quite busy today
okay, i'll stand by
Yeah I don't think there's a way to completely unset the parameter without remounting the element.
It only supports setting two vals, on_session or off_session
Anything else would fail the validation
typically passing '' empty string to the API unsets it but I think Stripe.js has different validations than the API
ok thank you ๐
Sorry for the delay