#Jakub

1 messages · Page 1 of 1 (latest)

trim wrenBOT
sharp marsh
#

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

fluid olive
#

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 ?

sharp marsh
#

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

#

but yeah if you show me some code like your complete JS I could have a look

fluid olive
#

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

sharp marsh
#

again I can't help you without seeing some code

fluid olive
#

That was a issue. Thank you very much for your time. I wouldn't have figured it out myself quickly