feat(checkout): Apple Pay and Google Pay checkout buttons - #991
Merged
github-actions[bot] merged 1 commit intoSep 28, 2026
Conversation
Adds wallet merchant onboarding with domain verification, payment sessions with the Apple Pay merchant-validation handshake, and encrypted token processing that validates network support and token expiry. Ships a feature-detected WalletPayButtons component for the checkout UI. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
|
@davidsoniaudin2-oss is attempting to deploy a commit to the smartdevs17's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@davidsoniaudin2-oss Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #916.
Adds Apple Pay and Google Pay support at checkout: merchants register per provider, verify the domains they take payments from, and run the standard wallet flow (session → merchant validation → token processing) backed by a feature-detected button component.
What changed
backend/src/services/wallet-payments.ts—WalletPaymentService: merchant registration and provider networks, domain registration/verification, payment sessions with expiry, the Apple Pay merchant-validation handshake, and encrypted token processing that validates network support and token expiry.backend/src/routes/wallet-payments.ts— REST API mounted at/api/v1/wallet-payments.frontend/src/components/payments/WalletPayButtons.tsx— branded Apple Pay / Google Pay buttons with browser feature detection (overridable for SSR/tests) and an "unavailable on this device" fallback.backend/src/index.ts— router registration.docs/WALLET_PAYMENTS.md— feature documentation.Behaviour notes
merchantIdentifier.failedwith afailureReason.Tests
backend/src/services/__tests__/wallet-payments.test.ts— 27 tests covering onboarding, domain verification, session lifecycle/expiry, merchant validation, token processing, and all failure paths.frontend/src/components/payments/__tests__/WalletPayButtons.test.tsx— 7 tests covering rendering, availability overrides, amount formatting, disabled state, and fallback.All passing; typecheck and lint clean for the new files.
Verification