My application is built upon Vue.js & Nuxt. I am trying to get token for processing purchase. However I am always getting following error when I try to get token. The worst part is the error code is not available on Official https://developers.recurly.com/reference/recurly-js/#errors.
I have created sample pure html page & I am able to get the token but not using the Nuxt (Vue) application.
On token generation I always receive below error.
{
"err": {
"name": "elements-tokenization-not-possible",
"code": "elements-tokenization-not-possible",
"message": "No Element capable of tokenization was found in the given Elements group (). Please review documentation for a list of tokenizing Elements.",
"found": []
}
}
For reference I have created codesandbox.io & can be browse at https://rdh6t.sse.codesandbox.io/
Can someone guide me what's I am doing wrong here ?
Doc: https://developers.recurly.com/reference/recurly-js/#getting-a-token
Found multiple issue
The main issue with the code presented was, there is a second Elements being created that's used for the submit, which is different than the one that the card element is attaching too.