-
Notifications
You must be signed in to change notification settings - Fork 1
Client Order Flow, Payment & Profile Integration #48
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
Open
Abdulrahman-AlSayed-1
wants to merge
15
commits into
dev
Choose a base branch
from
feature/order-integration
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a8f4312
feat: implement Stripe payment integration and fix auth validations
Abdulrahman-AlSayed-1 8a3c58d
Fix bugs and risks flagged by CodeRabbit
Abdulrahman-AlSayed-1 d0638ad
add profile picture upload feature in profile page
Abdulrahman-AlSayed-1 b97e4e9
Fix some flagged errors
Abdulrahman-AlSayed-1 b387a12
implement E2E Order-Payment Flow
Abdulrahman-AlSayed-1 e65588e
Solve flagged bugs
Abdulrahman-AlSayed-1 38bce05
fix rabbit errors
Abdulrahman-AlSayed-1 a89afec
Add a Dedicated Voucher CTA
Abdulrahman-AlSayed-1 fced9a6
chore: add .env.example for environment variable documentation
Abdulrahman-AlSayed-1 cc86d15
fix: resolve Linux deployment case sensitivity issues and simplify ch…
Abdulrahman-AlSayed-1 6ae7cec
fix: corrected casing of ui folder in Modal import path
Abdulrahman-AlSayed-1 d2645ea
Fixed query cache invalidation
Abdulrahman-AlSayed-1 567fd4d
Use CURRENCY_SYMBOL in constants.js as one place to change
Abdulrahman-AlSayed-1 066c803
Fix Responsiveness on smaller screens
Abdulrahman-AlSayed-1 6bf50e1
feat: improve Stripe error handling and cleanup
Abdulrahman-AlSayed-1 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # Environment Configuration Example | ||
| # Copy this file to .env and fill in the actual values | ||
|
|
||
| # Set environment to local, dev, or prod | ||
| VITE_ENV=prod | ||
|
|
||
| # Environment URLs | ||
| VITE_API_URL_LOCAL=http://localhost:8080/ | ||
| VITE_API_URL_DEV=https://api-dev.revive.com/ | ||
| VITE_API_URL_PROD=https://revive-backend-production-93ea.up.railway.app/ | ||
|
|
||
| # Set to true to use mock data (no backend required) | ||
| # Set to false when the real backend is ready | ||
| VITE_USE_MOCK=false | ||
|
|
||
| # Backend API base URL (used when VITE_USE_MOCK=false) | ||
| VITE_API_BASE_URL=https://revive-backend-production-93ea.up.railway.app/ | ||
|
|
||
| # Stripe Publishable Key (from Stripe Dashboard) | ||
| # Key is not secret and can be exposed in the frontend | ||
| VITE_STRIPE_PUBLISHABLE_KEY=pk_test_YOUR_STRIPE_PUBLISHABLE_KEY | ||
|
|
||
| # Stripe Test Cards — Sandbox mode only | ||
| # Use any future expiry date (e.g. 12/34), any 3-digit CVC | ||
|
|
||
| # ✅ Successful payment | ||
| STRIPE_TEST_CARD_SUCCESS=4242424242424242 | ||
|
|
||
| # ✅ Successful payment - Visa (debit) | ||
| STRIPE_TEST_CARD_VISA_DEBIT=4000056655665556 | ||
|
|
||
| # ✅ Successful payment - Mastercard | ||
| STRIPE_TEST_CARD_MASTERCARD=5555555555554444 | ||
|
|
||
| # ✅ Successful payment - American Express (4-digit CVC) | ||
| STRIPE_TEST_CARD_AMEX=378282246310005 | ||
|
|
||
| # ⚠️ Requires 3D Secure authentication (tests your webhook/confirm flow) | ||
| STRIPE_TEST_CARD_3DS_REQUIRED=4000002500003155 | ||
|
|
||
| # ❌ Card declined (generic) | ||
| STRIPE_TEST_CARD_DECLINED=4000000000000002 | ||
|
|
||
| # ❌ Declined - insufficient funds | ||
| STRIPE_TEST_CARD_INSUFFICIENT_FUNDS=4000000000009995 | ||
|
|
||
| # ❌ Declined - expired card | ||
| STRIPE_TEST_CARD_EXPIRED=4000000000000069 | ||
|
|
||
| # ❌ Declined - incorrect CVC | ||
| STRIPE_TEST_CARD_CVC_FAIL=4000000000000127 | ||
|
|
||
| # ❌ Charge succeeds but dispute/fraud flagged later (good for testing refund flow) | ||
| STRIPE_TEST_CARD_DISPUTE=4000000000000259 | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
Unsafe defaults in
.env.examplerisk accidental production targeting.VITE_ENV=prodcombined withVITE_USE_MOCK=falsemeans a developer who copies this file to.envwithout reading carefully will immediately make real requests against the production API. Default toVITE_ENV=localandVITE_USE_MOCK=truefor safety.🛡️ Proposed fix for safe defaults
Also applies to: 14-14
🤖 Prompt for AI Agents