Quick Setup
-
Initialize the SDK
Add the following script to the
<head>
of your index.html page. This will set up the SDK for testing in a sandbox environment. Removesandbox
from the URL when developing for production.<script src="https://sandbox.web.squarecdn.com/v1/square.js"></script>
-
Choose a payment method
The Payments object provides factory methods for the payment methods. To complete a payment scenario, see one of the following payment methods: