Skip to content

feat(ad-hoc): nAPM cancellation reason message - #533

Merged
andrii-vysotskyi-cko merged 6 commits into
masterfrom
feature/napm-cancellation-reason-log
Aug 10, 2026
Merged

feat(ad-hoc): nAPM cancellation reason message#533
andrii-vysotskyi-cko merged 6 commits into
masterfrom
feature/napm-cancellation-reason-log

Conversation

@andrii-vysotskyi-cko

Copy link
Copy Markdown
Collaborator

-

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds cancellation reasons to native alternative payment failures and lifecycle cleanup for payment components.

Changes:

  • Distinguishes customer, lifecycle, and programmatic cancellation.
  • Includes the reason in nAP cancellation failures.
  • Cancels nAP and card components on deallocation.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
DefaultNativeAlternativePaymentViewModel.swift Supplies customer or lifecycle reasons.
NativeAlternativePaymentInteractor.swift Adds reason-based cancellation API.
NativeAlternativePaymentDefaultInteractor.swift Produces reason-specific failure messages.
NativeAlternativePaymentCancelationReason.swift Defines cancellation reasons.
PONativeAlternativePaymentComponent.swift Adds programmatic and lifecycle cancellation.
POCardTokenizationComponent.swift Adds lifecycle cancellation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Suppressed comments (1)

Sources/ProcessOutUI/Sources/Modules/NativeAlternativePayment/Interactor/NativeAlternativePaymentCancelationReason.swift:11

  • Cancelation is misspelled; the noun is Cancellation, which is also the spelling used throughout this codebase. Rename this type (and its file/references) to NativeAlternativePaymentCancellationReason.
enum NativeAlternativePaymentCancelationReason {

@andrii-vysotskyi-cko
andrii-vysotskyi-cko merged commit 2c6161f into master Aug 10, 2026
4 checks passed
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