diff --git a/ios/Podfile b/ios/Podfile
index 67a0e60..be98bac 100644
--- a/ios/Podfile
+++ b/ios/Podfile
@@ -1,5 +1,5 @@
-# Uncomment this line to define a global platform for your project
-# platform :ios, '13.0'
+# Platform version for iOS
+platform :ios, '13.0'
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index 151846f..6c0101e 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -68,5 +68,16 @@
bluetooth-central
location
+ CFBundleURLTypes
+
+
+ CFBundleTypeRole
+ Editor
+ CFBundleURLSchemes
+
+ payfrit
+
+
+
diff --git a/lib/screens/cart_view_screen.dart b/lib/screens/cart_view_screen.dart
index 469b48a..b74101a 100644
--- a/lib/screens/cart_view_screen.dart
+++ b/lib/screens/cart_view_screen.dart
@@ -392,18 +392,22 @@ class _CartViewScreenState extends State {
appState.clearActiveOrder();
}
- // Show notification using global scaffold messenger key
- // This works even after the cart screen is popped
+ // Show snackbar notification with Payfrit light green
rootScaffoldMessengerKey.currentState?.showSnackBar(
SnackBar(
content: Row(
children: [
- Icon(Icons.notifications_active, color: Colors.white),
- SizedBox(width: 8),
- Expanded(child: Text(update.message)),
+ const Icon(Icons.notifications_active, color: Colors.black),
+ const SizedBox(width: 8),
+ Expanded(
+ child: Text(
+ '${update.statusName}: ${update.message}',
+ style: const TextStyle(color: Colors.black, fontWeight: FontWeight.w500),
+ ),
+ ),
],
),
- backgroundColor: _getStatusColorStatic(update.statusId),
+ backgroundColor: const Color(0xFF90EE90), // Payfrit light green
duration: const Duration(seconds: 5),
behavior: SnackBarBehavior.floating,
margin: const EdgeInsets.only(bottom: 80, left: 16, right: 16),
diff --git a/lib/services/stripe_service.dart b/lib/services/stripe_service.dart
index bc42e8c..7aa246d 100644
--- a/lib/services/stripe_service.dart
+++ b/lib/services/stripe_service.dart
@@ -197,6 +197,7 @@ class StripeService {
merchantDisplayName: 'Payfrit',
paymentIntentClientSecret: clientSecret,
style: ThemeMode.system,
+ returnURL: 'payfrit://stripe-redirect', // Required for Cash App Pay on iOS
appearance: const PaymentSheetAppearance(
colors: PaymentSheetAppearanceColors(
primary: Color(0xFF000000),