vk-payments 0.2.15 → 0.2.17
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/bundles/vk-payments.umd.js +7 -18
- package/bundles/vk-payments.umd.js.map +1 -1
- package/bundles/vk-payments.umd.min.js +1 -1
- package/bundles/vk-payments.umd.min.js.map +1 -1
- package/esm2015/lib/modo/components/modo/modo.component.js +8 -21
- package/esm5/lib/modo/components/modo/modo.component.js +8 -20
- package/fesm2015/vk-payments.js +8 -20
- package/fesm2015/vk-payments.js.map +1 -1
- package/fesm5/vk-payments.js +8 -19
- package/fesm5/vk-payments.js.map +1 -1
- package/lib/modo/components/modo/modo.component.d.ts +2 -3
- package/package.json +1 -1
- package/vk-payments.metadata.json +1 -1
|
@@ -3511,9 +3511,8 @@
|
|
|
3511
3511
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3512
3512
|
*/
|
|
3513
3513
|
var ModoComponent = /** @class */ (function () {
|
|
3514
|
-
function ModoComponent(modoApi
|
|
3514
|
+
function ModoComponent(modoApi) {
|
|
3515
3515
|
this.modoApi = modoApi;
|
|
3516
|
-
this.route = route;
|
|
3517
3516
|
this.statusPay = new core.EventEmitter();
|
|
3518
3517
|
this.isLoading = false;
|
|
3519
3518
|
this.executionEnv = 'desktop';
|
|
@@ -3540,15 +3539,9 @@
|
|
|
3540
3539
|
*/
|
|
3541
3540
|
function () {
|
|
3542
3541
|
try {
|
|
3543
|
-
|
|
3544
|
-
var params = this.route.snapshot.params;
|
|
3545
|
-
/** @type {?} */
|
|
3546
|
-
var guid = params['guid'];
|
|
3547
|
-
/** @type {?} */
|
|
3548
|
-
var platform = (/** @type {?} */ (params['platform']));
|
|
3549
|
-
if (platform === 'iOS' || platform === 'Android' || guid === 'app') {
|
|
3542
|
+
if (this.mobileAppEnv === 'iOS' || this.mobileAppEnv === 'Android') {
|
|
3550
3543
|
this.executionEnv = 'native-app';
|
|
3551
|
-
this.devicePlatform =
|
|
3544
|
+
this.devicePlatform = this.mobileAppEnv;
|
|
3552
3545
|
console.log("MODO Payment: Entorno detectado -> Nativo (" + (this.devicePlatform || 'app') + ")");
|
|
3553
3546
|
return;
|
|
3554
3547
|
}
|
|
@@ -3586,7 +3579,6 @@
|
|
|
3586
3579
|
return [4 /*yield*/, this.createModoPayment()];
|
|
3587
3580
|
case 2:
|
|
3588
3581
|
initialData = _a.sent();
|
|
3589
|
-
this.isLoading = false;
|
|
3590
3582
|
switch (this.executionEnv) {
|
|
3591
3583
|
case 'native-app':
|
|
3592
3584
|
// Llama a la función nativa para abrir en un navegador externo
|
|
@@ -3762,8 +3754,7 @@
|
|
|
3762
3754
|
];
|
|
3763
3755
|
/** @nocollapse */
|
|
3764
3756
|
ModoComponent.ctorParameters = function () { return [
|
|
3765
|
-
{ type: ModoApiService }
|
|
3766
|
-
{ type: router.ActivatedRoute }
|
|
3757
|
+
{ type: ModoApiService }
|
|
3767
3758
|
]; };
|
|
3768
3759
|
ModoComponent.propDecorators = {
|
|
3769
3760
|
accessToken: [{ type: core.Input }],
|
|
@@ -3772,6 +3763,7 @@
|
|
|
3772
3763
|
data: [{ type: core.Input }],
|
|
3773
3764
|
amount: [{ type: core.Input }],
|
|
3774
3765
|
orderId: [{ type: core.Input }],
|
|
3766
|
+
mobileAppEnv: [{ type: core.Input }],
|
|
3775
3767
|
vkUrlApi: [{ type: core.Input }],
|
|
3776
3768
|
callbackUrl: [{ type: core.Input }],
|
|
3777
3769
|
callbackUrlSuccess: [{ type: core.Input }],
|
|
@@ -3793,6 +3785,8 @@
|
|
|
3793
3785
|
/** @type {?} */
|
|
3794
3786
|
ModoComponent.prototype.orderId;
|
|
3795
3787
|
/** @type {?} */
|
|
3788
|
+
ModoComponent.prototype.mobileAppEnv;
|
|
3789
|
+
/** @type {?} */
|
|
3796
3790
|
ModoComponent.prototype.vkUrlApi;
|
|
3797
3791
|
/** @type {?} */
|
|
3798
3792
|
ModoComponent.prototype.callbackUrl;
|
|
@@ -3817,11 +3811,6 @@
|
|
|
3817
3811
|
* @private
|
|
3818
3812
|
*/
|
|
3819
3813
|
ModoComponent.prototype.modoApi;
|
|
3820
|
-
/**
|
|
3821
|
-
* @type {?}
|
|
3822
|
-
* @private
|
|
3823
|
-
*/
|
|
3824
|
-
ModoComponent.prototype.route;
|
|
3825
3814
|
}
|
|
3826
3815
|
|
|
3827
3816
|
/**
|