"No primary field found. Please create and mount one before calling 'createCardToken'. Ignoring call..." #205
-
I'm working with Vue I have loaded successfully the MP elements with core following this which I believe is incomplete Once I call the payment and try to create the card token I receive this error but I haven't found what does it mean. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The issue was that it requires the card element to be a div |
Beta Was this translation helpful? Give feedback.
-
Hello @r9software! I see the issue is already closed but I'd like to add more info. First of all you are correct, this message is sent when the field wasn’t properly initialised as mentioned on the documentation.
Secondly, I recommend you to use Payment Brick instead of Core Methods, since you will have all the logic you mentioned plus the UI for free. |
Beta Was this translation helpful? Give feedback.
Hello @r9software! I see the issue is already closed but I'd like to add more info. First of all you are correct, this message is sent when the field wasn’t properly initialised as mentioned on the documentation.
Secondly, I recommend you to use Payment Brick instead of Core Methods, since you will have all the logic you mentioned plus the UI for free.