Showing
2 changed files
with
9 additions
and
9 deletions
... | @@ -89,7 +89,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | ... | @@ -89,7 +89,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { |
89 | 89 | ||
90 | // 🔧 Configure the SDK | 90 | // 🔧 Configure the SDK |
91 | WarplySDK.shared.configure( | 91 | WarplySDK.shared.configure( |
92 | - webId: "YOUR_WEB_ID", // Replace with your Web ID | 92 | + appUuid: "YOUR_APP_UUID", // Replace with your Web ID |
93 | merchantId: "YOUR_MERCHANT_ID", // Replace with your Merchant ID | 93 | merchantId: "YOUR_MERCHANT_ID", // Replace with your Merchant ID |
94 | environment: .production // Use .development for testing | 94 | environment: .production // Use .development for testing |
95 | ) | 95 | ) |
... | @@ -133,7 +133,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | ... | @@ -133,7 +133,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { |
133 | 133 | ||
134 | // 🔧 Configure the SDK | 134 | // 🔧 Configure the SDK |
135 | WarplySDK.shared.configure( | 135 | WarplySDK.shared.configure( |
136 | - webId: "YOUR_WEB_ID", | 136 | + appUuid: "YOUR_APP_UUID", |
137 | merchantId: "YOUR_MERCHANT_ID", | 137 | merchantId: "YOUR_MERCHANT_ID", |
138 | environment: .production | 138 | environment: .production |
139 | ) | 139 | ) |
... | @@ -637,14 +637,14 @@ class MainViewController: UIViewController, WarplyNavigationDelegate { | ... | @@ -637,14 +637,14 @@ class MainViewController: UIViewController, WarplyNavigationDelegate { |
637 | ```swift | 637 | ```swift |
638 | // Production environment (default) | 638 | // Production environment (default) |
639 | WarplySDK.shared.configure( | 639 | WarplySDK.shared.configure( |
640 | - webId: "your-production-web-id", | 640 | + appUuid: "your-production-app-uuid", |
641 | merchantId: "your-production-merchant-id", | 641 | merchantId: "your-production-merchant-id", |
642 | environment: .production | 642 | environment: .production |
643 | ) | 643 | ) |
644 | 644 | ||
645 | // Development environment | 645 | // Development environment |
646 | WarplySDK.shared.configure( | 646 | WarplySDK.shared.configure( |
647 | - webId: "your-development-web-id", | 647 | + appUuid: "your-development-app-uuid", |
648 | merchantId: "your-development-merchant-id", | 648 | merchantId: "your-development-merchant-id", |
649 | environment: .development | 649 | environment: .development |
650 | ) | 650 | ) |
... | @@ -1239,7 +1239,7 @@ Task { | ... | @@ -1239,7 +1239,7 @@ Task { |
1239 | ```swift | 1239 | ```swift |
1240 | // ✅ Good: Initialize in AppDelegate | 1240 | // ✅ Good: Initialize in AppDelegate |
1241 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | 1241 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { |
1242 | - WarplySDK.shared.configure(webId: "...", merchantId: "...") | 1242 | + WarplySDK.shared.configure(appUuid: "...", merchantId: "...") |
1243 | WarplySDK.shared.initialize { success in | 1243 | WarplySDK.shared.initialize { success in |
1244 | // SDK ready | 1244 | // SDK ready |
1245 | } | 1245 | } |
... | @@ -1366,7 +1366,7 @@ WarplySDK.shared.initialize { success in | ... | @@ -1366,7 +1366,7 @@ WarplySDK.shared.initialize { success in |
1366 | 1366 | ||
1367 | **Solutions:** | 1367 | **Solutions:** |
1368 | - Check network connectivity | 1368 | - Check network connectivity |
1369 | -- Verify webId and merchantId are correct | 1369 | +- Verify appUuid and merchantId are correct |
1370 | - Ensure proper environment configuration | 1370 | - Ensure proper environment configuration |
1371 | 1371 | ||
1372 | #### 2. No Data Returned | 1372 | #### 2. No Data Returned | ... | ... |
... | @@ -134,14 +134,14 @@ public final class WarplySDK { | ... | @@ -134,14 +134,14 @@ public final class WarplySDK { |
134 | 134 | ||
135 | // MARK: - Configuration | 135 | // MARK: - Configuration |
136 | 136 | ||
137 | - /// Configure the SDK with web ID and merchant ID | 137 | + /// Configure the SDK with app uuid and merchant ID |
138 | - public func configure(webId: String, merchantId: String, environment: Configuration.Environment = .production) { | 138 | + public func configure(appUuid: String, merchantId: String, environment: Configuration.Environment = .production) { |
139 | Configuration.baseURL = environment.baseURL | 139 | Configuration.baseURL = environment.baseURL |
140 | Configuration.host = environment.host | 140 | Configuration.host = environment.host |
141 | Configuration.errorDomain = environment.host | 141 | Configuration.errorDomain = environment.host |
142 | Configuration.merchantId = merchantId | 142 | Configuration.merchantId = merchantId |
143 | 143 | ||
144 | - storage.appUuid = webId | 144 | + storage.appUuid = appUuid |
145 | storage.merchantId = merchantId | 145 | storage.merchantId = merchantId |
146 | } | 146 | } |
147 | 147 | ... | ... |
-
Please register or login to post a comment