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.