skipcash-reactnative 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,6 +10,10 @@ import CryptoKit
|
|
|
10
10
|
import CommonCrypto
|
|
11
11
|
import PassKit
|
|
12
12
|
import WebKit
|
|
13
|
+
import Network
|
|
14
|
+
import SystemConfiguration.CaptiveNetwork
|
|
15
|
+
|
|
16
|
+
|
|
13
17
|
|
|
14
18
|
public struct ResultObject: Codable {
|
|
15
19
|
public var isSuccess: Bool
|
|
@@ -80,10 +84,10 @@ import WebKit
|
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
func callApplePay(paymentId: String, applePaymentToken: String) {
|
|
83
|
-
|
|
84
|
-
|
|
87
|
+
let request = "{\"token\": {\"paymentData\":\(applePaymentToken)}, \"ip\": \"178.152.136.90\"}"
|
|
88
|
+
// let request = "{\"token\": {\"paymentData\":\(applePaymentToken)}, \"ip\": ""}"
|
|
85
89
|
let postData = request.data(using: .utf8)
|
|
86
|
-
let url = URL(string:
|
|
90
|
+
let url = URL(string: production + "/api/v1/payments/apple/" + paymentId + "/pay-mc")!
|
|
87
91
|
var urlRequest = URLRequest(url: url)
|
|
88
92
|
urlRequest.httpMethod = "POST"
|
|
89
93
|
urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
|