-
-
Notifications
You must be signed in to change notification settings - Fork 4
(SP:3) [SHOP] harden checkout, wallet flows, shipping coupling, and local smoke coverage #399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 30 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
b482b57
(SP: 2)[Wallets] add paymentMethod selection with method-aware checko…
liudmylasovetovs 38a317f
(SP: 1)[Wallets] lock Stripe wallets to card rail and add Apple Pay d…
liudmylasovetovs 2df8b3b
(SP: 2)[Wallets] add Monobank wallet payment foundation (adapter + wa…
liudmylasovetovs 8bc3b77
(SP: 2)[Wallets] add Monobank Google Pay config/submit routes with in…
liudmylasovetovs 00a7fc7
(SP: 2)[Wallets] add Monobank Google Pay checkout UI with pending ret…
liudmylasovetovs 2894a33
(SP: 2)[Wallets] propagate Monobank Google Pay wallet attribution and…
liudmylasovetovs 5c56a3a
(SP: 1)[Wallets] add Stripe wallet attribution and harden well-known …
liudmylasovetovs 3981cb9
(SP: 2)[Wallets] remove Stripe webhook fetch and treat Monobank 429 a…
liudmylasovetovs 6693ece
(SP: 2)[Wallets] restore NP warehouses caching + correct CityRef usag…
liudmylasovetovs 7c4c6e0
Merge branch 'develop' of https://github.com/DevLoversTeam/devlovers.…
liudmylasovetovs f7dc004
(SP: 1)[Wallets] replace settlement_ref FK with city_ref FK in np_war…
liudmylasovetovs 04e7f5f
(SP: 1)[SHOP] fix ESLint issues (imports, types, minor test cleanup)
liudmylasovetovs 472d76f
(SP: 3) [SHOP][Payments] fix review issues, restore checkout compatib…
liudmylasovetovs 0043209
(SP: 3) [SHOP][Wallets][NP] fix review findings for Monobank, Stripe,…
liudmylasovetovs 1b76792
(SP: 1) [SHOP] polish monobank google pay fallback messaging
liudmylasovetovs 3eaeeb4
Merge branch 'develop' of https://github.com/DevLoversTeam/devlovers.…
liudmylasovetovs 4eecc51
Merge branch 'develop' of https://github.com/DevLoversTeam/devlovers.…
liudmylasovetovs 4c7caaa
(SP:1) [SHOP] fail closed explicit Stripe checkout when unavailable
liudmylasovetovs 8c94e93
(SP:1) [SHOP] gate shipping processing and admin actions by paid orde…
liudmylasovetovs f06723e
(SP:1) [SHOP] close shipping pipeline on terminal payment failures
liudmylasovetovs f0fa6e3
(SP:1) [SHOP] add shipping payload validation regression tests
liudmylasovetovs 1519390
(SP:3) [SHOP] harden monobank webhook verification policy and summary…
liudmylasovetovs d676bd7
(SP:1) [SHOP] gate checkout payment pages by payment-init access
liudmylasovetovs 8630673
(SP:2) [SHOP] align checkout token scopes for payment-init flows
liudmylasovetovs 56f878f
(SP:2) [SHOP] align Stripe capability gating and return-status UX
liudmylasovetovs e22992b
(SP:3) [SHOP] redesign cart page, extract cart UI class tokens and t…
liudmylasovetovs 66fb418
(SP:1) [SHOP] split monobank invoice and google pay checkout flows
liudmylasovetovs 6ab915a
(SP:2) [SHOP] harden monobank wallet reconciliation for unknown submit
liudmylasovetovs e6418e6
(SP:2) [SHOP] prevent monobank janitor from canceling reconcilable wa…
liudmylasovetovs 13f8ec0
(SP:3) [SHOP] add stable local Playwright checkout smoke coverage
liudmylasovetovs 1173dfd
(SP:2) [SHOP] harden checkout recovery, token flows, and local e2e gu…
liudmylasovetovs 124c76f
(SP:2) [SHOP] harden checkout idempotent recovery and tocken-failure …
liudmylasovetovs 1896831
(SP:1) [SHOP] fix checkout recovery, cart ally and local e2e stability
liudmylasovetovs 8adb595
(SP:1) [SHOP] harden checkout recovery, fail-closed cart flow, and st…
liudmylasovetovs e602868
(SP:1) [SHOP] preserve recovery token, allow failed stripe retry, and…
liudmylasovetovs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
1,758 changes: 1,041 additions & 717 deletions
1,758
frontend/app/[locale]/shop/cart/CartPageClient.tsx
Large diffs are not rendered by default.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| import { isMonobankEnabled } from '@/lib/env/monobank'; | ||
| import { isPaymentsEnabled as isStripePaymentsEnabled } from '@/lib/env/stripe'; | ||
|
|
||
| function isFlagEnabled(value: string | undefined): boolean { | ||
| return (value ?? '').trim() === 'true'; | ||
| } | ||
|
|
||
| export function resolveStripeCheckoutEnabled(): boolean { | ||
| try { | ||
| return isStripePaymentsEnabled({ | ||
| requirePublishableKey: true, | ||
| respectStripePaymentsFlag: true, | ||
| }); | ||
| } catch { | ||
| return false; | ||
| } | ||
| } | ||
|
|
||
| export function resolveMonobankCheckoutEnabled(): boolean { | ||
| const paymentsEnabled = isFlagEnabled(process.env.PAYMENTS_ENABLED); | ||
| if (!paymentsEnabled) return false; | ||
|
|
||
| try { | ||
| return isMonobankEnabled(); | ||
| } catch { | ||
| return false; | ||
| } | ||
| } | ||
|
|
||
| export function resolveMonobankGooglePayEnabled(): boolean { | ||
| const raw = (process.env.SHOP_MONOBANK_GPAY_ENABLED ?? '') | ||
| .trim() | ||
| .toLowerCase(); | ||
| return raw === 'true' || raw === '1' || raw === 'yes' || raw === 'on'; | ||
| } |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.