Repository navigation
6.7.0
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
CashApppayment method model, including support for customer profile sharing, actions, and customer profile details, with associated classes such asCashAppCustomerProfile,CashAppAddress,CashAppAction, andCashAppActionType. (lib/Checkout/Payments/Setups/Common/PaymentMethods/CashApp/CashApp.php[1]CashAppCustomerProfile.php[2]CashAppAddress.php[3]CashAppAction.php[4]CashAppActionType.php[5] - Registered the
CashApppayment method in thePaymentMethodsclass, allowing it to be serialized and used like other payment methods. (PaymentMethods.php[1] [2]
Customer and Device Model Enhancements:
- Extended the
Customermodel with new optional fields:id,country, andtax_number, improving support for customer identification and compliance. (Customer.phplib/Checkout/Payments/Setups/Common/Customer/Customer.phpR10-R65) - Enhanced the
Devicemodel with new fields:fingerprint,ipv4,ipv6,client(with enum viaDeviceClient), andos(with enum viaDeviceOs), 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, andinitializationfields inPaymentMethodBase, including their possible values and usage. (PaymentMethodBase.phplib/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.phptest/Checkout/Tests/Payments/Setups/PaymentSetupsIntegrationTest.phpR143-R219) - Added a unit test for confirming a payment setup with Cash App. (
PaymentSetupsClientTest.phptest/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.