Migrating SqPaymentForm to Web Payments SDK locationId required?


I am migrating from the SqPaymentForm to the Web Payments SDK Square.payments.

We currently just use SqPaymentForm to generate the nonce token, and just want to replace that functionality. Can the locationId parameter be empty/blank in this use case? It was not required before with the SqPaymentForm token/nonce generation.

If not, does it matter which of the merchants locationId’s are used for generating the token/nonce?


:wave: While the location_id isn’t required with the Web Payments SDK we do recommend you set the location_id. Some additional payment methods that the Web Payments SDK supports require the location_id to be set. Setting the location_id will make supporting these methods in the future much easier. :slightly_smiling_face: