Skip to content

Commit

Permalink
Fix: set SDK config to ios.
Browse files Browse the repository at this point in the history
  • Loading branch information
sethgnavo committed Feb 21, 2022
1 parent 6957598 commit 2c91d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/KKiaPaySDK/KKiaPay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public struct KKiaPay: UIViewRepresentable {

private func base64EncodedUrl() -> String {

let encodedData = Data("{\"amount\":\"\(amount ?? "")\",\"phone\": \"\(phone ?? "")\",\"data\": \"\(data ?? "")\",\"key\": \"\(publicAPIKey ?? "")\",\"sandbox\":\(sandbox ?? true),\"theme\": \"\(theme ?? "")\", \"name\": \"\(name ?? "")\", \"email\": \"\(email ?? "")\",\"callback\": \"\(callback ?? "")\",\"sdk\":\"android\",\"host\":\"com.package.name\",\"reason\":\"\"}".utf8).base64EncodedString()
let encodedData = Data("{\"amount\":\"\(amount ?? "")\",\"phone\": \"\(phone ?? "")\",\"data\": \"\(data ?? "")\",\"key\": \"\(publicAPIKey ?? "")\",\"sandbox\":\(sandbox ?? true),\"theme\": \"\(theme ?? "")\", \"name\": \"\(name ?? "")\", \"email\": \"\(email ?? "")\",\"callback\": \"\(callback ?? "")\",\"sdk\":\"ios\",\"reason\":\"\"}".utf8).base64EncodedString()

return "https://widget-v2.kkiapay.me/?="+encodedData

Expand Down

0 comments on commit 2c91d78

Please sign in to comment.