[ Web Proxy ]
URL:
Viewing: https://developer.squareup.com/reference/sdks/web/payments/objects/Payments#Payments.setLocale [Back]  [Original]

Payments Object - Square Web Payments SDK Reference

#
Payments

Returned by Square.payments(appId, locationId).

Use this object to instantiate Payment methods.

Methods

#
ach ( ... ) Promise<ACH>

Creates an ACH payment method instance

#
afterpayClearpay ( ... ) Promise<AfterpayClearpay>

Create an Afterpay/Clearpay payment method instance.

#
applePay ( ... ) Promise<ApplePay>

Create an ApplePay payment method instance.

#
card ( ... ) Promise<Card>

Creates a Card payment method. For more information about customizing the card form, see available CardOptions.

#
cashAppPay ( ... ) Promise<CashAppPay>

Create a Cash App Pay payment method instance

#
giftCard ( ... ) Promise<GiftCard>

Creates a GiftCard payment method instance.

#
googlePay ( ... ) Promise<GooglePay>

Create a GooglePay payment method instance.

#
paymentRequest ( ... ) PaymentRequest

Creates a new PaymentRequest instance that sets up event listeners for GooglePay, ApplePay, CashAppPay, and Afterpay payment methods.

#
setLocale ( ... ) Promise<SetLocaleResult>

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.

#
verifyBuyer ( ... ) Promise<null | VerifyBuyerResponseDetails>

Starts the Strong Customer Authentication flow to verify the identity of the payment card holder.

payments.js
JS
JavaScript
Copy

const payments = Square.payments(appId, locationId);

Web Proxy Viewer  |  New URL  |  Original Page