- Square Version:
2020-04-22 - Java:
5.2.0.20200422 - .NET:
5.2.0 - Node.js:
3.20200422.0 - PHP:
3.20200422.0 - Python:
5.2.0.20200422 - Ruby:
5.2.0.20200422
2020-05-13 Changelog
- Incrementally adding
MaxLengthattributes to string type fields. Some of these updates are included in this release. - Added a description to each value for the
CountryandCurrencyENUMs.
Take Payments and Collect Fees. Added information about limits on collecting app fee and tax reporting.
Retrieve a Customer Profile. Added guidance to clarify the updated behavior of the retrieve customer endpoint with a premerged
customer_idvalue to return the merged customer profile of a newcustomer_idvalue.Use the Customers API. Corrected the code example.
Webhooks API - Validate Notifications. Added a warning about potential timing attacks and guidance to prevent such attacks. Added clarity to the guidance about webhook signatures.
Add the Masterpass Button. Improved the Masterpass example code to match current JavaScript patterns and added a warning that Masterpass is disabled for payment forms.
SqPaymentForm.Configuration Fields. Corrected the
SqPaymentFormtechnical reference to show theinputTargetobject has aninputStylefield.Add the Apple Pay on the Web Button:
- Added CSS code to apply a visual style to the Apple Pay button as suggested in Apple Pay documentation.
- A shipping address is no longer required by Apple Pay. Accordingly, we updated the example code to remove the related error message.
Walkthrough: Integrate Square Payments in a Website. Addressed a bug in the JavaScript example code.
Square SDK and Mobile Samples. In the Mobile samples section, we added links to the POS API (Android and iOS) GitHub examples.