Skip to content

fix: enhance error handling and notifications for payment processes#493

Open
manideepk90 wants to merge 1 commit into
mainfrom
fix/handle-error-spm
Open

fix: enhance error handling and notifications for payment processes#493
manideepk90 wants to merge 1 commit into
mainfrom
fix/handle-error-spm

Conversation

@manideepk90

Copy link
Copy Markdown
Contributor

Type of Change

  • Bugfix
  • Feature
  • Refactor
  • Chore
  • CI/CD
  • Docs

What & Why

Fixed missing widget notifications for error/cancel states in payment confirmation. Previously, when payments failed or were cancelled in SavedPaymentSheet, the
notifyWidgetPaymentResult was only called on success, leaving widgets unaware of failure states.

Added notifyWidgetPaymentResult calls for:

  • Google Pay: Cancelled, Failed, and None (technical error) states
  • Apple Pay: Cancelled, Simulated, Failed, and None (technical error) states

Also introduced a new walletError type in PaymentConfirmTypes to properly categorize wallet-related failures.


Screenshots / Recordings


Affected Area & Impact

  • Client Core
  • Shared Codebase
  • Android
  • iOS

Android PR / status (if any):
iOS PR / status (if any):
Shared Codebase PR / status (if any):

Testing

  • JS bundle built
  • Tested in Android app
  • Tested in iOS app

Notes: Widget error notification coverage for saved payment methods (Google Pay & Apple Pay)

Checklist

  • Tested in consuming Android app
  • Tested in consuming iOS app

@manideepk90 manideepk90 requested a review from sh-iv-am April 22, 2026 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant