#Jakub
1 messages · Page 1 of 1 (latest)
it should work fine, if you pass the cardNumber Element we should find the values from the other inputs automatically and submit them to the API
also, it should be elements.get('cardNumber') , not elements() , where elements is the variable you create previously when initialising the page
Yes I'm aware that it should work when I pass only cardNumber element but I still have issue which I described to you. So there were no similar problems ? Can you give me some hints on what to check in integration because unfortunately my ideas are over ?
I'd need to see your full code
do note what I said about using elements and not elements() . The latter is invoking a constructor so it's creating a new instance, so you might be actually creating your CardNumber element on a different instance of elements than the one you create your CardExpiry on, for example, which will break the way we find the information from the various elements
there's also https://jsfiddle.net/cdt43qL1/ as a working example
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
but yeah if you show me some code like your complete JS I could have a look
Ok I will try because maybe it's the issue
Because person before me create getter for stripeElements using this.$stripe.elements() so it can be a problem with creating new elements instance as you said
again I can't help you without seeing some code
That was a issue. Thank you very much for your time. I wouldn't have figured it out myself quickly