API to get card nonce without integrating the html

Hello Team,

I have gone through the documentation and found if we need to add a card, we have to embed the HTML in our code-base. What I am looking for is to have an API in which I can send card details and get the card token.
Please let me know if I’m missing something as I need to integrate asap.

Thanks!

:wave: With Square you’ll have to use the Web Payments SDK to generate a token that can be passed to the payment request. With Square Web Payments SDK it provides a secure buyer payment card entry method along with other secure payment methods. The SDK produces a secure one-time use payment token that your application web client sends to your backend, where it is processed as a payment with the Payments API. :slightly_smiling_face:

Thanks a lot. I am marking the above response as a solution.