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
- let request = "{\"token\": {\"paymentData\":\(applePaymentToken)}}"
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: uat + "/api/v1/payments/apple/" + paymentId + "/pay-mc")!
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")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skipcash-reactnative",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "integrate skipcash in react native app.",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",