Unable to find a way to directly tokenize a Credit card #516
-
I am using Can anyone help me understand what am I missing or is there a completely different approach to this? I see that there is a FrontendAPI but I am not looking at using that. I need an approach via the BackendAPIs and would greatly appreciate any help around this. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
I have also checked the GraphQL part of it but the documentation doesn't tell anything specific via GraphQL either. It is pointing it out to the |
Beta Was this translation helpful? Give feedback.
-
I've also come across the above issues... seems like we have to use |
Beta Was this translation helpful? Give feedback.
-
Just to elaborate a bit more on this. I spent a lot of time setting up Swell in my Nextjs application using your examples as a guide. This repo in conjunction with your blog post guide. The front-end documentation is presented as either or. Cool, GraphQl it is. That is until you get down the road and realise, at least this seems to be the case, that things like tokenisation can only be achieved with the Swell.js library. So now it looks like I'm going to have to use the GraphQl api, This seems a little crazy, does anyone care to advise on the tokenisation scenario with the various libraries? Seems the GraphQl endpoint is only really suitable for basic setups? Any insight into this would be very welcome. Thanks! |
Beta Was this translation helpful? Give feedback.
We made a lot of mistakes with the GraphQL implementation. As @sags95 mentioned, we're about to add some warnings to the docs to clarify those limitations. The truth is that the way it was first implemented won't be able to support the fully flexibility of the platform and it needs to be entirely revamped for that reason. There's no ETA for this effort either as we have other priorities currently.
I would generally advise against using GQL until we get there. Really sorry for the confusion and trouble.