vk-payments 0.2.30 → 0.2.32
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 +355 -186
- 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/galicia/components/galicia.component.js +311 -0
- package/esm2015/lib/galicia/galicia.module.js +37 -0
- package/esm2015/lib/galicia/models/galicia.models.js +46 -0
- package/esm2015/lib/galicia/services/galicia.api.service.js +74 -0
- package/esm2015/lib/vk-payments.module.js +5 -4
- package/esm2015/vk-payments.js +4 -4
- package/esm5/lib/galicia/components/galicia.component.js +359 -0
- package/esm5/lib/galicia/galicia.module.js +41 -0
- package/esm5/lib/galicia/models/galicia.models.js +46 -0
- package/esm5/lib/galicia/services/galicia.api.service.js +87 -0
- package/esm5/lib/vk-payments.module.js +5 -4
- package/esm5/vk-payments.js +4 -4
- package/fesm2015/vk-payments.js +291 -149
- package/fesm2015/vk-payments.js.map +1 -1
- package/fesm5/vk-payments.js +351 -181
- package/fesm5/vk-payments.js.map +1 -1
- package/lib/galicia/components/galicia.component.d.ts +46 -0
- package/lib/galicia/galicia.module.d.ts +2 -0
- package/lib/galicia/models/galicia.models.d.ts +17 -0
- package/lib/galicia/services/galicia.api.service.d.ts +11 -0
- package/package.json +4 -1
- package/vk-payments.d.ts +3 -3
- package/vk-payments.metadata.json +1 -1
- package/esm2015/lib/bank-transfer/bank-transfer.module.js +0 -33
- package/esm2015/lib/bank-transfer/components/bank-transfer.component.js +0 -197
- package/esm2015/lib/bank-transfer/models/bank-transfer.models.js +0 -54
- package/esm2015/lib/bank-transfer/services/bank-transfer.api.service.js +0 -52
- package/esm5/lib/bank-transfer/bank-transfer.module.js +0 -37
- package/esm5/lib/bank-transfer/components/bank-transfer.component.js +0 -225
- package/esm5/lib/bank-transfer/models/bank-transfer.models.js +0 -54
- package/esm5/lib/bank-transfer/services/bank-transfer.api.service.js +0 -57
- package/lib/bank-transfer/bank-transfer.module.d.ts +0 -2
- package/lib/bank-transfer/components/bank-transfer.component.d.ts +0 -29
- package/lib/bank-transfer/models/bank-transfer.models.d.ts +0 -20
- package/lib/bank-transfer/services/bank-transfer.api.service.d.ts +0 -8
package/fesm2015/vk-payments.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Injectable, ɵɵdefineInjectable, ɵɵinject, EventEmitter, Component, Input, Output, ViewChild, NgModule } from '@angular/core';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FormsModule, ReactiveFormsModule
|
|
3
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
4
|
import { Router, RouterModule } from '@angular/router';
|
|
5
5
|
import { HttpHeaders, HttpClient, HttpClientModule } from '@angular/common/http';
|
|
6
6
|
import sha256 from 'sha256';
|
|
7
7
|
import { __awaiter } from 'tslib';
|
|
8
|
+
import { toDataURL } from 'qrcode';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* @fileoverview added by tsickle
|
|
@@ -3186,269 +3187,409 @@ ModoModule.decorators = [
|
|
|
3186
3187
|
|
|
3187
3188
|
/**
|
|
3188
3189
|
* @fileoverview added by tsickle
|
|
3189
|
-
* Generated from: lib/
|
|
3190
|
+
* Generated from: lib/galicia/services/galicia.api.service.ts
|
|
3190
3191
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3191
3192
|
*/
|
|
3192
|
-
class
|
|
3193
|
+
class GaliciaApiService {
|
|
3193
3194
|
/**
|
|
3194
|
-
* @param {?}
|
|
3195
|
+
* @param {?} httpClient
|
|
3195
3196
|
*/
|
|
3196
|
-
constructor(
|
|
3197
|
-
this.
|
|
3197
|
+
constructor(httpClient) {
|
|
3198
|
+
this.httpClient = httpClient;
|
|
3198
3199
|
}
|
|
3199
3200
|
/**
|
|
3200
|
-
* @param {?}
|
|
3201
|
-
* @param {?} request
|
|
3202
|
-
* @param {?} vkApiUrl
|
|
3201
|
+
* @param {?} url
|
|
3203
3202
|
* @return {?}
|
|
3204
3203
|
*/
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3204
|
+
normalizeUrl(url) {
|
|
3205
|
+
if (url.length > 0 && url.charAt(url.length - 1) == '/') {
|
|
3206
|
+
url = url.substr(0, url.length - 1);
|
|
3207
|
+
}
|
|
3208
|
+
return url;
|
|
3209
|
+
}
|
|
3210
|
+
/**
|
|
3211
|
+
* @param {?} url
|
|
3212
|
+
* @param {?} initPayment
|
|
3213
|
+
* @return {?}
|
|
3214
|
+
*/
|
|
3215
|
+
initPayment(url, initPayment) {
|
|
3212
3216
|
/** @type {?} */
|
|
3213
|
-
const
|
|
3214
|
-
|
|
3217
|
+
const body = {
|
|
3218
|
+
storeId: initPayment.storeId,
|
|
3219
|
+
userId: initPayment.userId,
|
|
3220
|
+
sessionId: initPayment.sessionId,
|
|
3221
|
+
storeName: initPayment.storeName,
|
|
3222
|
+
checkoutId: initPayment.checkoutId
|
|
3223
|
+
};
|
|
3224
|
+
return this.httpClient.post(this.normalizeUrl(url) + '/init-payment', body);
|
|
3225
|
+
}
|
|
3226
|
+
/**
|
|
3227
|
+
* @param {?} url
|
|
3228
|
+
* @param {?} billNumber
|
|
3229
|
+
* @return {?}
|
|
3230
|
+
*/
|
|
3231
|
+
paymentStatus(url, billNumber) {
|
|
3232
|
+
return this.httpClient.get(this.normalizeUrl(url) + '/payment-status?billNumber=' + billNumber);
|
|
3215
3233
|
}
|
|
3216
3234
|
}
|
|
3217
|
-
|
|
3235
|
+
GaliciaApiService.decorators = [
|
|
3218
3236
|
{ type: Injectable, args: [{
|
|
3219
3237
|
providedIn: 'root'
|
|
3220
3238
|
},] }
|
|
3221
3239
|
];
|
|
3222
3240
|
/** @nocollapse */
|
|
3223
|
-
|
|
3241
|
+
GaliciaApiService.ctorParameters = () => [
|
|
3224
3242
|
{ type: HttpClient }
|
|
3225
3243
|
];
|
|
3226
|
-
/** @nocollapse */
|
|
3244
|
+
/** @nocollapse */ GaliciaApiService.ngInjectableDef = ɵɵdefineInjectable({ factory: function GaliciaApiService_Factory() { return new GaliciaApiService(ɵɵinject(HttpClient)); }, token: GaliciaApiService, providedIn: "root" });
|
|
3227
3245
|
if (false) {
|
|
3228
3246
|
/**
|
|
3229
3247
|
* @type {?}
|
|
3230
3248
|
* @private
|
|
3231
3249
|
*/
|
|
3232
|
-
|
|
3250
|
+
GaliciaApiService.prototype.authHeaders;
|
|
3251
|
+
/**
|
|
3252
|
+
* @type {?}
|
|
3253
|
+
* @private
|
|
3254
|
+
*/
|
|
3255
|
+
GaliciaApiService.prototype.httpClient;
|
|
3233
3256
|
}
|
|
3234
3257
|
|
|
3235
3258
|
/**
|
|
3236
3259
|
* @fileoverview added by tsickle
|
|
3237
|
-
* Generated from: lib/
|
|
3260
|
+
* Generated from: lib/galicia/components/galicia.component.ts
|
|
3238
3261
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3239
3262
|
*/
|
|
3240
|
-
class
|
|
3263
|
+
class GaliciaComponent {
|
|
3241
3264
|
/**
|
|
3242
|
-
* @param {?}
|
|
3265
|
+
* @param {?} galiciaApiService
|
|
3243
3266
|
*/
|
|
3244
|
-
constructor(
|
|
3245
|
-
this.
|
|
3246
|
-
this.discountRate = 0.10; // Tasa de descuento (10% por defecto)
|
|
3247
|
-
// Tasa de descuento (10% por defecto)
|
|
3267
|
+
constructor(galiciaApiService) {
|
|
3268
|
+
this.galiciaApiService = galiciaApiService;
|
|
3248
3269
|
this.statusPay = new EventEmitter();
|
|
3249
|
-
this.
|
|
3270
|
+
this.qrImage = '';
|
|
3271
|
+
this.billNumber = '';
|
|
3250
3272
|
this.errorMessage = '';
|
|
3251
|
-
this.
|
|
3252
|
-
this.
|
|
3253
|
-
|
|
3254
|
-
this.
|
|
3255
|
-
|
|
3256
|
-
|
|
3273
|
+
this.isGeneratingQr = true;
|
|
3274
|
+
this.paymentCompleted = false;
|
|
3275
|
+
this.paymentId = '';
|
|
3276
|
+
this.showQr = false;
|
|
3277
|
+
this.expired = false;
|
|
3278
|
+
this.isLoading = false;
|
|
3279
|
+
this.hasError = false;
|
|
3280
|
+
this.minutes = 0;
|
|
3281
|
+
this.seconds = 0;
|
|
3282
|
+
this.paymentResult = { success: false, paymentId: '', integrator: 'GALICIA' };
|
|
3257
3283
|
}
|
|
3258
|
-
// Calculados a partir de `amount` (que ya tiene el descuento aplicado)
|
|
3259
3284
|
/**
|
|
3260
3285
|
* @return {?}
|
|
3261
3286
|
*/
|
|
3262
|
-
|
|
3263
|
-
|
|
3287
|
+
ngOnInit() {
|
|
3288
|
+
this.createInitPayment();
|
|
3264
3289
|
}
|
|
3265
3290
|
/**
|
|
3291
|
+
* @param {?} datos
|
|
3266
3292
|
* @return {?}
|
|
3267
3293
|
*/
|
|
3268
|
-
|
|
3269
|
-
|
|
3294
|
+
generateQr(datos) {
|
|
3295
|
+
/** @type {?} */
|
|
3296
|
+
const decoded = atob(datos);
|
|
3297
|
+
toDataURL(decoded, {
|
|
3298
|
+
width: 300,
|
|
3299
|
+
margin: 2
|
|
3300
|
+
})
|
|
3301
|
+
.then((/**
|
|
3302
|
+
* @param {?} url
|
|
3303
|
+
* @return {?}
|
|
3304
|
+
*/
|
|
3305
|
+
url => {
|
|
3306
|
+
this.qrImage = url;
|
|
3307
|
+
this.isGeneratingQr = false;
|
|
3308
|
+
this.showQr = true;
|
|
3309
|
+
this.expired = false;
|
|
3310
|
+
this.startTimer();
|
|
3311
|
+
this.startPaymentValidation();
|
|
3312
|
+
}));
|
|
3270
3313
|
}
|
|
3271
3314
|
/**
|
|
3272
3315
|
* @return {?}
|
|
3273
3316
|
*/
|
|
3274
|
-
|
|
3317
|
+
createInitPayment() {
|
|
3318
|
+
this.OinitPayment = {
|
|
3319
|
+
sessionId: '',
|
|
3320
|
+
userId: this.userId,
|
|
3321
|
+
storeId: this.storeId,
|
|
3322
|
+
storeName: this.storeName,
|
|
3323
|
+
checkoutId: this.checkoutId
|
|
3324
|
+
};
|
|
3325
|
+
this.initPayment();
|
|
3326
|
+
}
|
|
3275
3327
|
/**
|
|
3276
|
-
* @param {?} text
|
|
3277
3328
|
* @return {?}
|
|
3278
3329
|
*/
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3330
|
+
initPayment() {
|
|
3331
|
+
this.isGeneratingQr = true;
|
|
3332
|
+
this.galiciaApiService.initPayment(this.vkUrlApi, this.OinitPayment)
|
|
3333
|
+
.subscribe({
|
|
3334
|
+
next: (/**
|
|
3335
|
+
* @param {?} v
|
|
3336
|
+
* @return {?}
|
|
3337
|
+
*/
|
|
3338
|
+
(v) => this.initPaymentResponseHandler(v)),
|
|
3339
|
+
error: (/**
|
|
3340
|
+
* @param {?} v
|
|
3341
|
+
* @return {?}
|
|
3342
|
+
*/
|
|
3343
|
+
(v) => this.initPaymentErrorHandler(v))
|
|
3344
|
+
});
|
|
3292
3345
|
}
|
|
3293
3346
|
/**
|
|
3347
|
+
* @private
|
|
3348
|
+
* @param {?} response
|
|
3294
3349
|
* @return {?}
|
|
3295
3350
|
*/
|
|
3296
|
-
|
|
3351
|
+
initPaymentResponseHandler(response) {
|
|
3352
|
+
if (!response.success) {
|
|
3353
|
+
this.isLoading = false;
|
|
3354
|
+
this.hasError = true;
|
|
3355
|
+
this.statusPay.emit(this.paymentResult);
|
|
3356
|
+
this.errorMessage = response.errorsMessages[0] || 'Ocurrió un error al generar el código QR.';
|
|
3357
|
+
return;
|
|
3358
|
+
}
|
|
3297
3359
|
/** @type {?} */
|
|
3298
|
-
|
|
3299
|
-
this.
|
|
3300
|
-
this.
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3360
|
+
var qrData = response.data.bills[0].qr.datos;
|
|
3361
|
+
this.billNumber = response.data.bills[0].nroBoleta;
|
|
3362
|
+
this.generateQr(qrData);
|
|
3363
|
+
}
|
|
3364
|
+
/**
|
|
3365
|
+
* @private
|
|
3366
|
+
* @param {?} error
|
|
3367
|
+
* @return {?}
|
|
3368
|
+
*/
|
|
3369
|
+
initPaymentErrorHandler(error) {
|
|
3370
|
+
this.isLoading = false;
|
|
3371
|
+
this.hasError = true;
|
|
3372
|
+
this.errorMessage = error.errorsMessages[0] || 'Ocurrió un error al generar el código QR.';
|
|
3373
|
+
this.paymentResult.success = false;
|
|
3374
|
+
this.statusPay.emit(this.paymentResult);
|
|
3305
3375
|
}
|
|
3306
3376
|
/**
|
|
3307
3377
|
* @return {?}
|
|
3308
3378
|
*/
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
this.
|
|
3313
|
-
this.
|
|
3314
|
-
/** @type {?} */
|
|
3315
|
-
const request = {
|
|
3316
|
-
cuit: '00000000000',
|
|
3317
|
-
// Valor genérico mientras no se pide al usuario
|
|
3318
|
-
checkoutId: this.checkoutId,
|
|
3319
|
-
checkoutAdditionalData: this.checkoutAdditionalData,
|
|
3320
|
-
storeName: this.storeName || 'Tienda VK',
|
|
3321
|
-
storeId: this.storeId
|
|
3322
|
-
};
|
|
3323
|
-
this.bankTransferApi.createPayment(this.accessToken, request, this.vkUrlApi).subscribe((/**
|
|
3324
|
-
* @param {?} response
|
|
3379
|
+
startTimer() {
|
|
3380
|
+
clearInterval(this.interval);
|
|
3381
|
+
this.minutes = 1;
|
|
3382
|
+
this.seconds = 0;
|
|
3383
|
+
this.interval = setInterval((/**
|
|
3325
3384
|
* @return {?}
|
|
3326
3385
|
*/
|
|
3327
|
-
(
|
|
3328
|
-
this.
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3386
|
+
() => {
|
|
3387
|
+
if (this.seconds === 0) {
|
|
3388
|
+
if (this.minutes === 0) {
|
|
3389
|
+
this.stopValidation();
|
|
3390
|
+
this.showQr = false;
|
|
3391
|
+
this.expired = true;
|
|
3392
|
+
return;
|
|
3393
|
+
}
|
|
3394
|
+
this.minutes--;
|
|
3395
|
+
this.seconds = 59;
|
|
3336
3396
|
}
|
|
3337
3397
|
else {
|
|
3338
|
-
this.
|
|
3339
|
-
? response.errorsMessages[0]
|
|
3340
|
-
: 'Ocurrió un error al registrar la transferencia.';
|
|
3341
|
-
this.statusPay.emit({
|
|
3342
|
-
success: false,
|
|
3343
|
-
paymentId: '',
|
|
3344
|
-
integrator: 'BANK_TRANSFER'
|
|
3345
|
-
});
|
|
3398
|
+
this.seconds--;
|
|
3346
3399
|
}
|
|
3347
|
-
}),
|
|
3348
|
-
|
|
3400
|
+
}), 1000);
|
|
3401
|
+
}
|
|
3402
|
+
/**
|
|
3403
|
+
* @return {?}
|
|
3404
|
+
*/
|
|
3405
|
+
startPaymentValidation() {
|
|
3406
|
+
this.validationInterval = setInterval((/**
|
|
3349
3407
|
* @return {?}
|
|
3350
3408
|
*/
|
|
3351
|
-
(
|
|
3352
|
-
this.
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3409
|
+
() => {
|
|
3410
|
+
this.galiciaApiService.paymentStatus(this.vkUrlApi, this.billNumber)
|
|
3411
|
+
.subscribe({
|
|
3412
|
+
next: (/**
|
|
3413
|
+
* @param {?} v
|
|
3414
|
+
* @return {?}
|
|
3415
|
+
*/
|
|
3416
|
+
(v) => this.paymentStatusResponseHandler(v)),
|
|
3417
|
+
error: (/**
|
|
3418
|
+
* @param {?} v
|
|
3419
|
+
* @return {?}
|
|
3420
|
+
*/
|
|
3421
|
+
(v) => this.paymentStatusErrorHandler(v))
|
|
3360
3422
|
});
|
|
3361
|
-
|
|
3362
|
-
}));
|
|
3423
|
+
}), 5000);
|
|
3363
3424
|
}
|
|
3364
3425
|
/**
|
|
3426
|
+
* @param {?} response
|
|
3365
3427
|
* @return {?}
|
|
3366
3428
|
*/
|
|
3367
|
-
|
|
3368
|
-
|
|
3429
|
+
paymentStatusResponseHandler(response) {
|
|
3430
|
+
console.log(response);
|
|
3431
|
+
if (!response.success) {
|
|
3432
|
+
this.isLoading = false;
|
|
3433
|
+
this.statusPay.emit(this.paymentResult);
|
|
3434
|
+
return;
|
|
3435
|
+
}
|
|
3436
|
+
if (response.data.isPaid) {
|
|
3437
|
+
this.stopValidation();
|
|
3438
|
+
this.showQr = false;
|
|
3439
|
+
this.expired = false;
|
|
3440
|
+
this.paymentCompleted = true;
|
|
3441
|
+
this.paymentId = response.data.paymentId;
|
|
3442
|
+
this.paymentResult = {
|
|
3443
|
+
success: true,
|
|
3444
|
+
paymentId: this.paymentId,
|
|
3445
|
+
integrator: 'GALICIA'
|
|
3446
|
+
};
|
|
3447
|
+
this.statusPay.emit(this.paymentResult);
|
|
3448
|
+
}
|
|
3449
|
+
}
|
|
3450
|
+
/**
|
|
3451
|
+
* @private
|
|
3452
|
+
* @param {?} error
|
|
3453
|
+
* @return {?}
|
|
3454
|
+
*/
|
|
3455
|
+
paymentStatusErrorHandler(error) {
|
|
3456
|
+
clearInterval(this.validationInterval);
|
|
3457
|
+
this.hasError = true;
|
|
3458
|
+
}
|
|
3459
|
+
/**
|
|
3460
|
+
* @return {?}
|
|
3461
|
+
*/
|
|
3462
|
+
showQrAgain() {
|
|
3463
|
+
this.showQr = true;
|
|
3464
|
+
this.expired = false;
|
|
3465
|
+
this.startTimer();
|
|
3466
|
+
this.startPaymentValidation();
|
|
3467
|
+
}
|
|
3468
|
+
/**
|
|
3469
|
+
* @private
|
|
3470
|
+
* @return {?}
|
|
3471
|
+
*/
|
|
3472
|
+
stopValidation() {
|
|
3473
|
+
clearInterval(this.validationInterval);
|
|
3474
|
+
clearInterval(this.interval);
|
|
3369
3475
|
}
|
|
3370
3476
|
}
|
|
3371
|
-
|
|
3477
|
+
GaliciaComponent.decorators = [
|
|
3372
3478
|
{ type: Component, args: [{
|
|
3373
|
-
selector: '
|
|
3374
|
-
template: "<
|
|
3375
|
-
styles: [".
|
|
3479
|
+
selector: 'lib-galicia',
|
|
3480
|
+
template: "<div class=\"gc-payment\">\n <div class=\"formRow\">\n <p>\n Escane\u00E1 el c\u00F3digo QR con tu aplicaci\u00F3n bancaria para realizar el pago.\n </p>\n </div>\n\n <div *ngIf=\"isGeneratingQr && !hasError\" class=\"loading-container\">\n <div class=\"spinner\"></div>\n <p>Generando c\u00F3digo QR...</p>\n </div>\n\n <div *ngIf=\"showQr\">\n <div class=\"qr-container\">\n <img [src]=\"qrImage\" alt=\"QR Galicia\" />\n </div>\n\n <div class=\"timer\">\n Tiempo restante: {{ minutes }}:{{ seconds < 10 ? '0' + seconds : seconds }} \n </div>\n </div>\n\n <div *ngIf=\"hasError\" class=\"payment-error\">\n <div class=\"error-icon\">\n \u26A0\n </div>\n\n <div class=\"error-message\">\n <h3>No fue posible generar el c\u00F3digo QR</h3>\n\n <p>{{ errorMessage }}</p>\n </div>\n </div>\n\n <div *ngIf=\"paymentCompleted\" class=\"payment-success\">\n <div class=\"success-icon\">\n \u2713\n </div>\n\n <div class=\"success-message\">\n <h3>Pago realizado correctamente</h3>\n\n <p>\n ID de pago Galicia: <strong>{{ paymentId }}</strong>\n </p>\n </div>\n </div>\n\n <div *ngIf=\"expired\">\n <div class=\"pay-message info\">\n El c\u00F3digo QR expir\u00F3.\n </div>\n\n <button type=\"button\" (click)=\"showQrAgain()\">\n Regenerar c\u00F3digo QR\n </button>\n\n </div>\n</div>",
|
|
3481
|
+
styles: [".gc-payment{display:flex;flex-direction:column;align-items:center;text-align:center}.formRow{width:100%;max-width:400px;margin-bottom:20px}.loading-container{text-align:center;padding:30px}.spinner{width:40px;height:40px;margin:0 auto 15px;border:4px solid #e0e0e0;border-top:4px solid #06c;border-radius:50%;-webkit-animation:1s linear infinite spin;animation:1s linear infinite spin}.qr-container{margin:20px 0}.qr-container img{max-width:300px;width:100%;height:auto}.timer{margin-top:10px;font-size:18px;font-weight:600}.payment-error{text-align:center;padding:30px;max-width:400px}.error-icon{width:80px;height:80px;margin:0 auto 15px;border-radius:50%;background:#fc2626;color:#fff;font-size:48px;font-weight:700;display:flex;align-items:center;justify-content:center}.error-message h3{color:#fc2626;margin-bottom:10px}.payment-success{text-align:center;padding:30px}.success-icon{width:80px;height:80px;margin:0 auto 15px;border-radius:50%;background:#28a745;color:#fff;font-size:48px;font-weight:700;display:flex;align-items:center;justify-content:center}.success-message h3{color:#28a745;margin-bottom:10px}@-webkit-keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}"]
|
|
3376
3482
|
}] }
|
|
3377
3483
|
];
|
|
3378
3484
|
/** @nocollapse */
|
|
3379
|
-
|
|
3380
|
-
{ type:
|
|
3485
|
+
GaliciaComponent.ctorParameters = () => [
|
|
3486
|
+
{ type: GaliciaApiService }
|
|
3381
3487
|
];
|
|
3382
|
-
|
|
3488
|
+
GaliciaComponent.propDecorators = {
|
|
3383
3489
|
accessToken: [{ type: Input }],
|
|
3490
|
+
gaUrlApi: [{ type: Input }],
|
|
3384
3491
|
vkUrlApi: [{ type: Input }],
|
|
3385
|
-
|
|
3492
|
+
userId: [{ type: Input }],
|
|
3493
|
+
logoGa: [{ type: Input }],
|
|
3386
3494
|
storeId: [{ type: Input }],
|
|
3387
3495
|
storeName: [{ type: Input }],
|
|
3496
|
+
sessionId: [{ type: Input }],
|
|
3388
3497
|
checkoutId: [{ type: Input }],
|
|
3389
|
-
|
|
3390
|
-
discountRate: [{ type: Input }],
|
|
3498
|
+
data: [{ type: Input }],
|
|
3391
3499
|
statusPay: [{ type: Output }]
|
|
3392
3500
|
};
|
|
3393
3501
|
if (false) {
|
|
3394
3502
|
/** @type {?} */
|
|
3395
|
-
|
|
3503
|
+
GaliciaComponent.prototype.accessToken;
|
|
3504
|
+
/** @type {?} */
|
|
3505
|
+
GaliciaComponent.prototype.gaUrlApi;
|
|
3506
|
+
/** @type {?} */
|
|
3507
|
+
GaliciaComponent.prototype.vkUrlApi;
|
|
3508
|
+
/** @type {?} */
|
|
3509
|
+
GaliciaComponent.prototype.userId;
|
|
3510
|
+
/** @type {?} */
|
|
3511
|
+
GaliciaComponent.prototype.logoGa;
|
|
3396
3512
|
/** @type {?} */
|
|
3397
|
-
|
|
3513
|
+
GaliciaComponent.prototype.storeId;
|
|
3398
3514
|
/** @type {?} */
|
|
3399
|
-
|
|
3515
|
+
GaliciaComponent.prototype.storeName;
|
|
3400
3516
|
/** @type {?} */
|
|
3401
|
-
|
|
3517
|
+
GaliciaComponent.prototype.sessionId;
|
|
3402
3518
|
/** @type {?} */
|
|
3403
|
-
|
|
3519
|
+
GaliciaComponent.prototype.checkoutId;
|
|
3404
3520
|
/** @type {?} */
|
|
3405
|
-
|
|
3521
|
+
GaliciaComponent.prototype.data;
|
|
3406
3522
|
/** @type {?} */
|
|
3407
|
-
|
|
3523
|
+
GaliciaComponent.prototype.statusPay;
|
|
3408
3524
|
/** @type {?} */
|
|
3409
|
-
|
|
3525
|
+
GaliciaComponent.prototype.qrImage;
|
|
3410
3526
|
/** @type {?} */
|
|
3411
|
-
|
|
3527
|
+
GaliciaComponent.prototype.billNumber;
|
|
3412
3528
|
/** @type {?} */
|
|
3413
|
-
|
|
3529
|
+
GaliciaComponent.prototype.errorMessage;
|
|
3414
3530
|
/** @type {?} */
|
|
3415
|
-
|
|
3531
|
+
GaliciaComponent.prototype.OinitPayment;
|
|
3416
3532
|
/** @type {?} */
|
|
3417
|
-
|
|
3533
|
+
GaliciaComponent.prototype.isGeneratingQr;
|
|
3418
3534
|
/** @type {?} */
|
|
3419
|
-
|
|
3535
|
+
GaliciaComponent.prototype.paymentCompleted;
|
|
3420
3536
|
/** @type {?} */
|
|
3421
|
-
|
|
3537
|
+
GaliciaComponent.prototype.paymentId;
|
|
3538
|
+
/** @type {?} */
|
|
3539
|
+
GaliciaComponent.prototype.showQr;
|
|
3540
|
+
/** @type {?} */
|
|
3541
|
+
GaliciaComponent.prototype.expired;
|
|
3542
|
+
/** @type {?} */
|
|
3543
|
+
GaliciaComponent.prototype.isLoading;
|
|
3544
|
+
/** @type {?} */
|
|
3545
|
+
GaliciaComponent.prototype.hasError;
|
|
3546
|
+
/** @type {?} */
|
|
3547
|
+
GaliciaComponent.prototype.minutes;
|
|
3548
|
+
/** @type {?} */
|
|
3549
|
+
GaliciaComponent.prototype.seconds;
|
|
3422
3550
|
/**
|
|
3423
3551
|
* @type {?}
|
|
3424
3552
|
* @private
|
|
3425
3553
|
*/
|
|
3426
|
-
|
|
3554
|
+
GaliciaComponent.prototype.interval;
|
|
3555
|
+
/** @type {?} */
|
|
3556
|
+
GaliciaComponent.prototype.validationInterval;
|
|
3557
|
+
/** @type {?} */
|
|
3558
|
+
GaliciaComponent.prototype.paymentResult;
|
|
3559
|
+
/**
|
|
3560
|
+
* @type {?}
|
|
3561
|
+
* @private
|
|
3562
|
+
*/
|
|
3563
|
+
GaliciaComponent.prototype.galiciaApiService;
|
|
3427
3564
|
}
|
|
3428
3565
|
|
|
3429
3566
|
/**
|
|
3430
3567
|
* @fileoverview added by tsickle
|
|
3431
|
-
* Generated from: lib/
|
|
3568
|
+
* Generated from: lib/galicia/galicia.module.ts
|
|
3432
3569
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3433
3570
|
*/
|
|
3434
|
-
|
|
3571
|
+
/** @type {?} */
|
|
3572
|
+
const COMPONENTS$2 = [
|
|
3573
|
+
GaliciaComponent
|
|
3574
|
+
];
|
|
3575
|
+
class GaliciaModule {
|
|
3435
3576
|
}
|
|
3436
|
-
|
|
3577
|
+
GaliciaModule.decorators = [
|
|
3437
3578
|
{ type: NgModule, args: [{
|
|
3438
3579
|
declarations: [
|
|
3439
|
-
|
|
3580
|
+
COMPONENTS$2
|
|
3581
|
+
],
|
|
3582
|
+
exports: [
|
|
3583
|
+
COMPONENTS$2
|
|
3440
3584
|
],
|
|
3441
3585
|
imports: [
|
|
3442
3586
|
CommonModule,
|
|
3443
3587
|
FormsModule,
|
|
3444
3588
|
ReactiveFormsModule,
|
|
3445
|
-
|
|
3446
|
-
],
|
|
3447
|
-
exports: [
|
|
3448
|
-
BankTransferComponent
|
|
3589
|
+
RouterModule,
|
|
3449
3590
|
],
|
|
3450
3591
|
providers: [
|
|
3451
|
-
|
|
3592
|
+
GaliciaApiService
|
|
3452
3593
|
]
|
|
3453
3594
|
},] }
|
|
3454
3595
|
];
|
|
@@ -3465,14 +3606,15 @@ const LIB_MODULES = [
|
|
|
3465
3606
|
PaypalModule,
|
|
3466
3607
|
GoCuotasModule,
|
|
3467
3608
|
ModoModule,
|
|
3468
|
-
|
|
3609
|
+
GaliciaModule
|
|
3469
3610
|
];
|
|
3470
3611
|
class VkPaymentsModule {
|
|
3471
3612
|
}
|
|
3472
3613
|
VkPaymentsModule.decorators = [
|
|
3473
3614
|
{ type: NgModule, args: [{
|
|
3474
3615
|
imports: LIB_MODULES,
|
|
3475
|
-
exports: LIB_MODULES
|
|
3616
|
+
exports: LIB_MODULES,
|
|
3617
|
+
declarations: []
|
|
3476
3618
|
},] }
|
|
3477
3619
|
];
|
|
3478
3620
|
|
|
@@ -3488,5 +3630,5 @@ VkPaymentsModule.decorators = [
|
|
|
3488
3630
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3489
3631
|
*/
|
|
3490
3632
|
|
|
3491
|
-
export { VkPaymentsModule, MercadopagoModule as ɵa, MercadoPagoComponent as ɵb, MercadopagoApiService as ɵc, PromotionBankComponent as ɵd, SpsDecidirModule as ɵe, SpsDecidirComponent as ɵf, SpsDecidirApiService as ɵg, PaypalModule as ɵh, PayPalNewComponent as ɵi, GoCuotasModule as ɵj, GoCuotasComponent as ɵk, ModalComponent as ɵl, GoCuotasApiService as ɵm, ModoModule as ɵn, ModoComponent as ɵo, ModoApiService as ɵp,
|
|
3633
|
+
export { VkPaymentsModule, MercadopagoModule as ɵa, MercadoPagoComponent as ɵb, MercadopagoApiService as ɵc, PromotionBankComponent as ɵd, SpsDecidirModule as ɵe, SpsDecidirComponent as ɵf, SpsDecidirApiService as ɵg, PaypalModule as ɵh, PayPalNewComponent as ɵi, GoCuotasModule as ɵj, GoCuotasComponent as ɵk, ModalComponent as ɵl, GoCuotasApiService as ɵm, ModoModule as ɵn, ModoComponent as ɵo, ModoApiService as ɵp, GaliciaModule as ɵq, GaliciaComponent as ɵr, GaliciaApiService as ɵs };
|
|
3492
3634
|
//# sourceMappingURL=vk-payments.js.map
|