Skip to content

Conversation

@david-ruiz-cko
Copy link
Contributor

This pull request introduces a new PaymentSetups API integration, allowing users to create, update, retrieve, and confirm payment setups as part of the checkout process. It also adds comprehensive integration tests for the new functionality and updates the main exports and class initialization to include the new API.

PaymentSetups API integration:

  • Added a new PaymentSetups class in src/api/payment-setups/payment-setups.js with methods to create, update, get, and confirm payment setups, including error handling and input validation.
  • Registered the PaymentSetups API in the main Checkout class (src/Checkout.js) and exported it from the library entry point (src/index.js). [1] [2]

Testing and validation:

  • Added a full integration test suite in test/payment-setups/payment-setups-unit.js, test/payment-setups/payment-setups-it.js to cover the lifecycle of payment setups (create, get, update, confirm) and error handling for invalid or missing data.

@sonarqubecloud
Copy link

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.

2 participants