Web Payments SDK
Returned by Square.payments(appId, locationId).
Use this object to instantiate Payment methods.
Creates an ACH payment method instance
Create an Afterpay/Clearpay payment method instance.
Create an ApplePay payment method instance.
Creates a Card payment method.
For more information about customizing the card form, see available CardOptions.
Create a Cash App Pay payment method instance
Creates a GiftCard payment method instance.
Create a GooglePay payment method instance.
Creates a new PaymentRequest instance that sets up event listeners for GooglePay and ApplePay payment methods.
Sets the locale of the Payments instance. If this method is not called explicitly, the user's browser
language specified by navigator.language will be used instead. If the language returned by
navigator.language is unsupported, the SDK falls back to en-US.
Starts the Strong Customer Authentication flow to verify the identity of
the payment card holder.
const payments = Square.payments(appId, locationId);