#heisend3rp

1 messages ยท Page 1 of 1 (latest)

ember lavaBOT
frank halo
#

Hi there!

#

What do you mean by "doesn't work"? Did you get an error message? If so, which one?

peak sonnet
#

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

frank halo
#

Have you tried setup_future_usage: ''?

peak sonnet
#

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

slate mica
#

Hello ๐Ÿ‘‹
Have you tried updating the elements with just an empty object and see if that helps?

elements?.update({});

peak sonnet
#

doesn't change a thing

slate mica
#

Interesting.. Give me a moment to look around..

peak sonnet
#

Already found something? ๐Ÿ™ƒ

slate mica
#

have not yet, my apologies. Server is running quite busy today

peak sonnet
#

okay, i'll stand by

slate mica
#

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

peak sonnet
#

ok thank you ๐Ÿ™‚

slate mica
#

Sorry for the delay