Skip to content

6.7.0

Choose a tag to compare

@github-actions github-actions released this 08 Oct 15:32
50c7e49

Release 6.7.0 (#390)

This release introduces support for the Cash App payment method in the payment setup flow, along with enhancements to customer and device information handling. It adds new model classes for Cash App-specific data, extends device and customer models with additional fields, and improves test coverage for these features. The main changes are grouped below.

Cash App Payment Method Integration:

  • Added a new CashApp payment method model, including support for customer profile sharing, actions, and customer profile details, with associated classes such as CashAppCustomerProfile, CashAppAddress, CashAppAction, and CashAppActionType. (lib/Checkout/Payments/Setups/Common/PaymentMethods/CashApp/CashApp.php [1] CashAppCustomerProfile.php [2] CashAppAddress.php [3] CashAppAction.php [4] CashAppActionType.php [5]
  • Registered the CashApp payment method in the PaymentMethods class, allowing it to be serialized and used like other payment methods. (PaymentMethods.php [1] [2]

Customer and Device Model Enhancements:

  • Extended the Customer model with new optional fields: id, country, and tax_number, improving support for customer identification and compliance. (Customer.php lib/Checkout/Payments/Setups/Common/Customer/Customer.phpR10-R65)
  • Enhanced the Device model with new fields: fingerprint, ipv4, ipv6, client (with enum via DeviceClient), and os (with enum via DeviceOs), supporting richer device context for risk and eligibility checks. (Device.php [1] DeviceClient.php [2] DeviceOs.php [3]

Payment Method Base Improvements:

  • Documented and clarified the meaning of status, flags, and initialization fields in PaymentMethodBase, including their possible values and usage. (PaymentMethodBase.php lib/Checkout/Payments/Setups/Common/PaymentMethods/Common/PaymentMethodBase.phpR8-R29)

Test Coverage:

  • Added new integration tests to verify the correct handling and echoing of device fields, customer identifiers, and the Cash App payment method in payment setup requests and responses. (PaymentSetupsIntegrationTest.php test/Checkout/Tests/Payments/Setups/PaymentSetupsIntegrationTest.phpR143-R219)
  • Added a unit test for confirming a payment setup with Cash App. (PaymentSetupsClientTest.php test/Checkout/Tests/Payments/Setups/PaymentSetupsClientTest.phpR118-R139)

These changes collectively enable richer customer and device data handling and introduce full support for the Cash App payment method in the payment setup workflow.