Skip to content

Conversation

@armando-rodriguez-cko
Copy link
Contributor

This pull request introduces a new feature to handle the cancellation of scheduled retries for payments in the CheckoutSdk. The changes include adding a new API method, creating corresponding request and response models, and implementing unit and integration tests for this functionality.

New Feature: Cancel a Scheduled Retry

API Implementation:

  • Added a new method, CancelAScheduledRetry, to the IPaymentsClient interface and its implementation in PaymentsClient. This method validates parameters and sends a POST request to the cancellations endpoint to cancel a scheduled retry. (src/CheckoutSdk/Payments/IPaymentsClient.cs - [1] src/CheckoutSdk/Payments/PaymentsClient.cs - [2]
  • Introduced a constant CancelAScheduledRetryPath in PaymentsClient to define the new endpoint path. (src/CheckoutSdk/Payments/PaymentsClient.cs - src/CheckoutSdk/Payments/PaymentsClient.csR11)

Request and Response Models:

Testing:

@armando-rodriguez-cko armando-rodriguez-cko requested a review from a team June 20, 2025 12:50
@armando-rodriguez-cko armando-rodriguez-cko merged commit 3ab309b into master Jun 23, 2025
9 of 11 checks passed
@armando-rodriguez-cko armando-rodriguez-cko deleted the feature/add-cancel-a-scheluded-retry-endpoint branch June 23, 2025 06:51
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.

3 participants