react-native-tpay 1.3.2 → 1.3.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.
- package/ios/Source/Configuration/TransactionConfiguration.swift +7 -2
- package/ios/Source/Model/Domain/BankPayment.swift +1 -0
- package/ios/Source/Model/Domain/BlikPayment.swift +1 -0
- package/ios/Source/Model/Domain/CardPayment.swift +1 -0
- package/ios/Source/Model/Domain/DigitalWalletPayment.swift +1 -0
- package/ios/Source/Model/Domain/PayPoPayment.swift +1 -0
- package/ios/Source/Model/Transportation/Transportation+PaymentDetails.swift +1 -0
- package/ios/Source/Model/Transportation/Transportation+SingleTransaction.swift +1 -0
- package/ios/Source/Model/Transportation/Transportation+TokenPayment.swift +1 -0
- package/ios/Source/TpaySDK.mm +1 -1
- package/ios/Source/TpaySDK.swift +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ final class TransactionConfiguration {
|
|
|
19
19
|
|
|
20
20
|
let payerContext = makeTransactionPayerContext(from: signleTransaction)
|
|
21
21
|
|
|
22
|
-
return SingleTransaction(amount: signleTransaction.amount, description: signleTransaction.description, payerContext: payerContext)
|
|
22
|
+
return SingleTransaction(amount: signleTransaction.amount, description: signleTransaction.description, hiddenDescription: signleTransaction.hiddenDescription, payerContext: payerContext)
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
static func cardTokenTransaction(transactionConfiguration: String) -> Transaction? {
|
|
@@ -28,7 +28,7 @@ final class TransactionConfiguration {
|
|
|
28
28
|
return nil
|
|
29
29
|
}
|
|
30
30
|
let payerContext = makeTokenPayerContext(from: tokenPayment)
|
|
31
|
-
return SingleTransaction(amount: tokenPayment.amount, description: tokenPayment.description, payerContext: payerContext)
|
|
31
|
+
return SingleTransaction(amount: tokenPayment.amount, description: tokenPayment.description, hiddenDescription: tokenPayment.hiddenDescription, payerContext: payerContext)
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
static func addCard(tokenisationConfiguration: String) -> TokenizationData? {
|
|
@@ -62,6 +62,7 @@ final class TransactionConfiguration {
|
|
|
62
62
|
return .init(amount: cardPayment.paymentDetails.amount,
|
|
63
63
|
description: cardPayment.paymentDetails.description,
|
|
64
64
|
payerContext: .init(payer: payer),
|
|
65
|
+
hiddenDescription: cardPayment.paymentDetails.hiddenDescription,
|
|
65
66
|
paymentChannel: paymentChannel,
|
|
66
67
|
card: card,
|
|
67
68
|
cardToken: cardToken,
|
|
@@ -81,6 +82,7 @@ final class TransactionConfiguration {
|
|
|
81
82
|
return .init(amount: blikPayment.paymentDetails.amount,
|
|
82
83
|
description: blikPayment.paymentDetails.description,
|
|
83
84
|
payerContext: .init(payer: payer),
|
|
85
|
+
hiddenDescription: blikPayment.paymentDetails.hiddenDescription,
|
|
84
86
|
token: blikPayment.code,
|
|
85
87
|
alias: blikPayment.alias?.value,
|
|
86
88
|
paymentChannel: paymentChannel,
|
|
@@ -100,6 +102,7 @@ final class TransactionConfiguration {
|
|
|
100
102
|
return .init(amount: bankPayment.paymentDetails.amount,
|
|
101
103
|
description: bankPayment.paymentDetails.description,
|
|
102
104
|
payerContext: .init(payer: payer),
|
|
105
|
+
hiddenDescription: bankPayment.paymentDetails.hiddenDescription,
|
|
103
106
|
paymentChannel: paymentChannel,
|
|
104
107
|
callbacks: callbacks)
|
|
105
108
|
}
|
|
@@ -117,6 +120,7 @@ final class TransactionConfiguration {
|
|
|
117
120
|
return .init(amount: digitalWalletPayment.paymentDetails.amount,
|
|
118
121
|
description: digitalWalletPayment.paymentDetails.description,
|
|
119
122
|
payerContext: .init(payer: payer),
|
|
123
|
+
hiddenDescription: digitalWalletPayment.paymentDetails.hiddenDescription,
|
|
120
124
|
paymentChannel: paymentChannel,
|
|
121
125
|
token: digitalWalletPayment.applePayToken,
|
|
122
126
|
callbacks: callbacks)
|
|
@@ -135,6 +139,7 @@ final class TransactionConfiguration {
|
|
|
135
139
|
return .init(amount: payPoPayment.paymentDetails.amount,
|
|
136
140
|
description: payPoPayment.paymentDetails.description,
|
|
137
141
|
payerContext: .init(payer: payer),
|
|
142
|
+
hiddenDescription: payPoPayment.paymentDetails.hiddenDescription,
|
|
138
143
|
paymentChannel: paymentChannel,
|
|
139
144
|
callbacks: callbacks)
|
|
140
145
|
}
|
|
@@ -7,6 +7,7 @@ struct CardPayment: Transaction {
|
|
|
7
7
|
let amount: Double
|
|
8
8
|
let description: String
|
|
9
9
|
let payerContext: PayerContext?
|
|
10
|
+
let hiddenDescription: String?
|
|
10
11
|
let paymentChannel: Headless.Models.PaymentChannel
|
|
11
12
|
let card: Headless.Models.Card?
|
|
12
13
|
let cardToken: Headless.Models.CardToken?
|
|
@@ -7,6 +7,7 @@ struct DigitalWalletPayment: Transaction {
|
|
|
7
7
|
let amount: Double
|
|
8
8
|
let description: String
|
|
9
9
|
let payerContext: PayerContext?
|
|
10
|
+
let hiddenDescription: String?
|
|
10
11
|
let paymentChannel: Headless.Models.PaymentChannel
|
|
11
12
|
let token: String
|
|
12
13
|
let callbacks: CallbacksConfiguration
|
package/ios/Source/TpaySDK.mm
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
RCT_EXTERN_METHOD(screenlessAmbiguousBLIKPayment: (NSString *)json
|
|
27
27
|
resolve:(RCTPromiseResolveBlock)resolve
|
|
28
28
|
reject:(RCTPromiseRejectBlock)reject)
|
|
29
|
-
RCT_EXTERN_METHOD(
|
|
29
|
+
RCT_EXTERN_METHOD(screenlessApplePayPayment: (NSString *)json
|
|
30
30
|
resolve:(RCTPromiseResolveBlock)resolve
|
|
31
31
|
reject:(RCTPromiseRejectBlock)reject)
|
|
32
32
|
RCT_EXTERN_METHOD(screenlessPayPoPayment: (NSString *)json
|
package/ios/Source/TpaySDK.swift
CHANGED
|
@@ -135,7 +135,7 @@ final class TpayRNModule: NSObject, RCTBridgeModule {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
@objc func
|
|
138
|
+
@objc func screenlessApplePayPayment(_ json: String, resolve: @escaping RCTPromiseResolveBlock, reject _: RCTPromiseRejectBlock) {
|
|
139
139
|
Headless.getAvailablePaymentChannels { [weak self] result in
|
|
140
140
|
switch result {
|
|
141
141
|
case let .success(paymentChannels):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-tpay",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "The Tpay SDK empowers your app to seamlessly integrate Tpay’s payment functionalities, providing a comprehensive and developer-friendly solution for managing payments.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|