Skip to content

5.7.0

Latest

Choose a tag to compare

@github-actions github-actions released this 08 Oct 15:31
36e6181

Release 5.7.0 (#472)

This release adds comprehensive support for Cash App Pay and enhanced customer information to the Payment Setups API, including updates to the API documentation and integration tests. The main changes include detailed JSDoc documentation for the new fields, support for customer device and identification fields, and new integration tests to ensure these features work as expected.

Cash App Pay and Customer Support Enhancements:

  • Expanded the JSDoc documentation in payment-setups.js to describe the new payment_methods.cashapp object, including its request and response fields, and the new customer object fields (device, id, country, tax_number, etc.). This covers all endpoints: create, update, get, and confirm. [1] [2] [3] [4]
  • Standardized documentation for existing fields by replacing dashes with colons for consistency (e.g., billing_descriptor: ...). [1] [2] [3]

Integration Tests:

  • Added new integration tests in payment-setups-it.js to verify that customer device fields, customer identifiers, and Cash App Pay payment methods are correctly handled and echoed by the API. These tests also check the correct handling of the Cash App Pay initialization and status fields.

These changes ensure that the Payment Setups API now fully supports Cash App Pay and richer customer data, with clear documentation and robust test coverage.