@kushki/js 1.40.5 → 1.40.6-alpha-ZDK-1193547
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/lib/KushkiInfo.js +1 -1
- package/lib/infrastructure/EnvironmentEnum.d.ts +1 -1
- package/lib/infrastructure/EnvironmentEnum.js +1 -1
- package/lib/service/ApplePayService.js +4 -3
- package/lib/types/apple_pay_get_token_events.d.ts +1 -0
- package/package.json +1 -1
- package/lib/environments/environment.d.ts +0 -5
- package/lib/environments/environment.js +0 -11
package/lib/KushkiInfo.js
CHANGED
|
@@ -12,7 +12,7 @@ const UtilsService_1 = require("./../lib/service/UtilsService");
|
|
|
12
12
|
*/
|
|
13
13
|
class KInfo {
|
|
14
14
|
static buildKushkiInfo(kushkiInfo) {
|
|
15
|
-
const kushki_js_version = "1.40.
|
|
15
|
+
const kushki_js_version = "1.40.6-alpha-ZDK-1193547";
|
|
16
16
|
if (kushkiInfo) {
|
|
17
17
|
if (UtilsService_1.UtilsService.sIsEmpty(kushkiInfo.platformVersion))
|
|
18
18
|
kushkiInfo.platformVersion = kushki_js_version;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Environment enum file
|
|
4
4
|
*/
|
|
5
5
|
export declare enum EnvironmentEnum {
|
|
6
|
-
uat = "https://api-
|
|
6
|
+
uat = "https://api-qa.orizaba.kushki.dev/",
|
|
7
7
|
prod = "https://api.kushkipagos.com/",
|
|
8
8
|
regionalUat = "https://regional-uat.kushkipagos.com/",
|
|
9
9
|
regionalProd = "https://regional.kushkipagos.com/"
|
|
@@ -6,7 +6,7 @@ exports.EnvironmentEnum = void 0;
|
|
|
6
6
|
*/
|
|
7
7
|
var EnvironmentEnum;
|
|
8
8
|
(function (EnvironmentEnum) {
|
|
9
|
-
EnvironmentEnum["uat"] = "https://api-
|
|
9
|
+
EnvironmentEnum["uat"] = "https://api-qa.orizaba.kushki.dev/";
|
|
10
10
|
EnvironmentEnum["prod"] = "https://api.kushkipagos.com/";
|
|
11
11
|
EnvironmentEnum["regionalUat"] = "https://regional-uat.kushkipagos.com/";
|
|
12
12
|
EnvironmentEnum["regionalProd"] = "https://regional.kushkipagos.com/";
|
|
@@ -66,7 +66,7 @@ let ApplePayService = ApplePayService_1 = class ApplePayService {
|
|
|
66
66
|
} }, options.optionalApplePayFields);
|
|
67
67
|
const session = new window.ApplePaySession(this._getSupportedApplePayVersion(), session_params);
|
|
68
68
|
session.onvalidatemerchant = (event) => this._onValidateMerchant(event, mid, session, options, isTest, regional, callback);
|
|
69
|
-
session.onpaymentauthorized = (event) => this._onPaymentAuthorized(event, mid, session, isTest, regional, options.isSubscription, callback);
|
|
69
|
+
session.onpaymentauthorized = (event) => this._onPaymentAuthorized(event, mid, session, isTest, regional, options.isSubscription, callback, options.amount);
|
|
70
70
|
session.oncancel = () => {
|
|
71
71
|
onCancel();
|
|
72
72
|
};
|
|
@@ -150,10 +150,11 @@ let ApplePayService = ApplePayService_1 = class ApplePayService {
|
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
_onPaymentAuthorized(event, mid, session, isTest, regional, isSubscription = false, callback) {
|
|
153
|
+
_onPaymentAuthorized(event, mid, session, isTest, regional, isSubscription = false, callback, totalAmount) {
|
|
154
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
155
155
|
try {
|
|
156
|
-
const apple_token = Object.assign(Object.assign({}, event.payment.token.paymentData), { isSubscription,
|
|
156
|
+
const apple_token = Object.assign(Object.assign({}, event.payment.token.paymentData), { isSubscription,
|
|
157
|
+
totalAmount, paymentMethod: event.payment.token.paymentMethod });
|
|
157
158
|
const kushki_token = yield this._gateway
|
|
158
159
|
.getApplePayToken(apple_token, mid, isTest, regional)
|
|
159
160
|
.toPromise();
|
package/package.json
CHANGED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.environment = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Environment file
|
|
6
|
-
*/
|
|
7
|
-
/* tslint:disable:all */
|
|
8
|
-
// The file contents for the current environment will overwrite these during build.
|
|
9
|
-
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
|
|
10
|
-
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
|
|
11
|
-
exports.environment = {};
|