Skip to content

Conversation

@david-ruiz-cko
Copy link
Contributor

@david-ruiz-cko david-ruiz-cko commented Dec 11, 2025

This pull request introduces significant new functionality to support payment setups in the Checkout API, including the addition of new client classes, data models, and enhancements to existing payment and industry data structures. The main focus is on expanding the API's support for more complex payment setup scenarios, such as customer details, industry-specific data, and a variety of payment methods.

Key changes include:

Payment Setups Client Integration

  • Added the PaymentSetupsClient to the CheckoutApi, including initialization, property, and a public getter method to provide access to payment setup operations. (lib/Checkout/CheckoutApi.php) [1] [2] [3] [4]

New Data Models for Payment Setups

  • Introduced comprehensive new classes under lib/Checkout/Payments/Setups/Common/, including models for customer details (Customer, Device, Email, MerchantAccount), order information (Order, OrderSubMerchant), industry-specific data (Industry, AirlineData), and payment methods (PaymentMethods, Klarna, Stcpay, Tabby, Bizum, and related option/action classes). These models support richer data capture for payment setups. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17]

Enhancements to Existing Payment and Industry Data

  • Modified the FlightLegDetails class to use a DateTime object for the departure_date property, improving type safety and consistency for date handling. [1] [2]
  • Updated imports in payment destination classes to support new account holder details.

These changes collectively enhance the flexibility and capability of the Checkout API for handling advanced payment setup scenarios, industry-specific requirements, and a broader range of payment methods.

@david-ruiz-cko david-ruiz-cko requested a review from a team December 11, 2025 16:02
@armando-rodriguez-cko armando-rodriguez-cko force-pushed the feature/new-endpoint-payment-setups branch from 90cb204 to 141e37d Compare December 18, 2025 22:41
@armando-rodriguez-cko armando-rodriguez-cko changed the title Feature/new endpoint payment setups feat: new endpoint payment setups support Dec 18, 2025
@sonarqubecloud
Copy link

@david-ruiz-cko david-ruiz-cko requested a review from a team December 22, 2025 11:58
@david-ruiz-cko david-ruiz-cko merged commit 5cb1723 into master Dec 22, 2025
6 checks passed
@david-ruiz-cko david-ruiz-cko deleted the feature/new-endpoint-payment-setups branch December 22, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants