Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2025-06-13 14:30:08 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3ed271f84d819f99540670790656057fbd7cac2d
3ed271f8
1 parent
cd43d01d
WarplySDK args rename
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
CLIENT_DOCUMENTATION.md
SwiftWarplyFramework/SwiftWarplyFramework/Core/WarplySDK.swift
CLIENT_DOCUMENTATION.md
View file @
3ed271f
...
...
@@ -89,7 +89,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// 🔧 Configure the SDK
WarplySDK
.
shared
.
configure
(
webId
:
"YOUR_WEB_
ID"
,
// Replace with your Web ID
appUuid
:
"YOUR_APP_UU
ID"
,
// Replace with your Web ID
merchantId
:
"YOUR_MERCHANT_ID"
,
// Replace with your Merchant ID
environment
:
.
production
// Use .development for testing
)
...
...
@@ -133,7 +133,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// 🔧 Configure the SDK
WarplySDK
.
shared
.
configure
(
webId
:
"YOUR_WEB_
ID"
,
appUuid
:
"YOUR_APP_UU
ID"
,
merchantId
:
"YOUR_MERCHANT_ID"
,
environment
:
.
production
)
...
...
@@ -637,14 +637,14 @@ class MainViewController: UIViewController, WarplyNavigationDelegate {
```
swift
// Production environment (default)
WarplySDK
.
shared
.
configure
(
webId
:
"your-production-web-
id"
,
appUuid
:
"your-production-app-uu
id"
,
merchantId
:
"your-production-merchant-id"
,
environment
:
.
production
)
// Development environment
WarplySDK
.
shared
.
configure
(
webId
:
"your-development-web-
id"
,
appUuid
:
"your-development-app-uu
id"
,
merchantId
:
"your-development-merchant-id"
,
environment
:
.
development
)
...
...
@@ -1239,7 +1239,7 @@ Task {
```
swift
// ✅ Good: Initialize in AppDelegate
func
application
(
_
application
:
UIApplication
,
didFinishLaunchingWithOptions
launchOptions
:
[
UIApplication
.
LaunchOptionsKey
:
Any
]?)
->
Bool
{
WarplySDK
.
shared
.
configure
(
webI
d
:
"..."
,
merchantId
:
"..."
)
WarplySDK
.
shared
.
configure
(
appUui
d
:
"..."
,
merchantId
:
"..."
)
WarplySDK
.
shared
.
initialize
{
success
in
// SDK ready
}
...
...
@@ -1366,7 +1366,7 @@ WarplySDK.shared.initialize { success in
**Solutions:**
-
Check network connectivity
-
Verify
webI
d and merchantId are correct
-
Verify
appUui
d and merchantId are correct
-
Ensure proper environment configuration
#### 2. No Data Returned
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Core/WarplySDK.swift
View file @
3ed271f
...
...
@@ -134,14 +134,14 @@ public final class WarplySDK {
// MARK: - Configuration
/// Configure the SDK with
web ID
and merchant ID
public
func
configure
(
webI
d
:
String
,
merchantId
:
String
,
environment
:
Configuration
.
Environment
=
.
production
)
{
/// Configure the SDK with
app uuid
and merchant ID
public
func
configure
(
appUui
d
:
String
,
merchantId
:
String
,
environment
:
Configuration
.
Environment
=
.
production
)
{
Configuration
.
baseURL
=
environment
.
baseURL
Configuration
.
host
=
environment
.
host
Configuration
.
errorDomain
=
environment
.
host
Configuration
.
merchantId
=
merchantId
storage
.
appUuid
=
webI
d
storage
.
appUuid
=
appUui
d
storage
.
merchantId
=
merchantId
}
...
...
Please
register
or
login
to post a comment