vk-payments 0.2.31 → 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 +354 -194
- 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 +290 -157
- package/fesm2015/vk-payments.js.map +1 -1
- package/fesm5/vk-payments.js +350 -189
- 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 -206
- 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 -234
- 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 -30
- 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,278 +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
|
-
// Descuento explícito desde el carrito
|
|
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
|
-
|
|
3264
|
-
return this.amount + this.discountAmountValue;
|
|
3265
|
-
}
|
|
3266
|
-
return this.amount ? Math.round(this.amount / (1 - this.discountRate)) : 0;
|
|
3287
|
+
ngOnInit() {
|
|
3288
|
+
this.createInitPayment();
|
|
3267
3289
|
}
|
|
3268
3290
|
/**
|
|
3291
|
+
* @param {?} datos
|
|
3269
3292
|
* @return {?}
|
|
3270
3293
|
*/
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
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
|
+
}));
|
|
3276
3313
|
}
|
|
3277
3314
|
/**
|
|
3278
3315
|
* @return {?}
|
|
3279
3316
|
*/
|
|
3280
|
-
|
|
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
|
+
}
|
|
3281
3327
|
/**
|
|
3282
|
-
* @param {?} text
|
|
3283
3328
|
* @return {?}
|
|
3284
3329
|
*/
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
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
|
+
});
|
|
3298
3345
|
}
|
|
3299
3346
|
/**
|
|
3347
|
+
* @private
|
|
3348
|
+
* @param {?} response
|
|
3300
3349
|
* @return {?}
|
|
3301
3350
|
*/
|
|
3302
|
-
|
|
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
|
+
}
|
|
3303
3359
|
/** @type {?} */
|
|
3304
|
-
|
|
3305
|
-
this.
|
|
3306
|
-
this.
|
|
3307
|
-
setTimeout((/**
|
|
3308
|
-
* @return {?}
|
|
3309
|
-
*/
|
|
3310
|
-
() => this.amountCopied = false), 2000);
|
|
3360
|
+
var qrData = response.data.bills[0].qr.datos;
|
|
3361
|
+
this.billNumber = response.data.bills[0].nroBoleta;
|
|
3362
|
+
this.generateQr(qrData);
|
|
3311
3363
|
}
|
|
3312
3364
|
/**
|
|
3365
|
+
* @private
|
|
3366
|
+
* @param {?} error
|
|
3313
3367
|
* @return {?}
|
|
3314
3368
|
*/
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
this.
|
|
3319
|
-
this.
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
this.
|
|
3330
|
-
* @param {?} response
|
|
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);
|
|
3375
|
+
}
|
|
3376
|
+
/**
|
|
3377
|
+
* @return {?}
|
|
3378
|
+
*/
|
|
3379
|
+
startTimer() {
|
|
3380
|
+
clearInterval(this.interval);
|
|
3381
|
+
this.minutes = 1;
|
|
3382
|
+
this.seconds = 0;
|
|
3383
|
+
this.interval = setInterval((/**
|
|
3331
3384
|
* @return {?}
|
|
3332
3385
|
*/
|
|
3333
|
-
(
|
|
3334
|
-
this.
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
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;
|
|
3342
3396
|
}
|
|
3343
3397
|
else {
|
|
3344
|
-
this.
|
|
3345
|
-
? response.errorsMessages[0]
|
|
3346
|
-
: 'Ocurrió un error al registrar la transferencia.';
|
|
3347
|
-
this.statusPay.emit({
|
|
3348
|
-
success: false,
|
|
3349
|
-
paymentId: '',
|
|
3350
|
-
integrator: 'BANK_TRANSFER'
|
|
3351
|
-
});
|
|
3398
|
+
this.seconds--;
|
|
3352
3399
|
}
|
|
3353
|
-
}),
|
|
3354
|
-
|
|
3400
|
+
}), 1000);
|
|
3401
|
+
}
|
|
3402
|
+
/**
|
|
3403
|
+
* @return {?}
|
|
3404
|
+
*/
|
|
3405
|
+
startPaymentValidation() {
|
|
3406
|
+
this.validationInterval = setInterval((/**
|
|
3355
3407
|
* @return {?}
|
|
3356
3408
|
*/
|
|
3357
|
-
(
|
|
3358
|
-
this.
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
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))
|
|
3366
3422
|
});
|
|
3367
|
-
|
|
3368
|
-
}));
|
|
3423
|
+
}), 5000);
|
|
3369
3424
|
}
|
|
3370
3425
|
/**
|
|
3426
|
+
* @param {?} response
|
|
3371
3427
|
* @return {?}
|
|
3372
3428
|
*/
|
|
3373
|
-
|
|
3374
|
-
|
|
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);
|
|
3375
3475
|
}
|
|
3376
3476
|
}
|
|
3377
|
-
|
|
3477
|
+
GaliciaComponent.decorators = [
|
|
3378
3478
|
{ type: Component, args: [{
|
|
3379
|
-
selector: '
|
|
3380
|
-
template: "<
|
|
3381
|
-
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)}}"]
|
|
3382
3482
|
}] }
|
|
3383
3483
|
];
|
|
3384
3484
|
/** @nocollapse */
|
|
3385
|
-
|
|
3386
|
-
{ type:
|
|
3485
|
+
GaliciaComponent.ctorParameters = () => [
|
|
3486
|
+
{ type: GaliciaApiService }
|
|
3387
3487
|
];
|
|
3388
|
-
|
|
3488
|
+
GaliciaComponent.propDecorators = {
|
|
3389
3489
|
accessToken: [{ type: Input }],
|
|
3490
|
+
gaUrlApi: [{ type: Input }],
|
|
3390
3491
|
vkUrlApi: [{ type: Input }],
|
|
3391
|
-
|
|
3492
|
+
userId: [{ type: Input }],
|
|
3493
|
+
logoGa: [{ type: Input }],
|
|
3392
3494
|
storeId: [{ type: Input }],
|
|
3393
3495
|
storeName: [{ type: Input }],
|
|
3496
|
+
sessionId: [{ type: Input }],
|
|
3394
3497
|
checkoutId: [{ type: Input }],
|
|
3395
|
-
|
|
3396
|
-
discountRate: [{ type: Input }],
|
|
3397
|
-
discountAmountValue: [{ type: Input }],
|
|
3498
|
+
data: [{ type: Input }],
|
|
3398
3499
|
statusPay: [{ type: Output }]
|
|
3399
3500
|
};
|
|
3400
3501
|
if (false) {
|
|
3401
3502
|
/** @type {?} */
|
|
3402
|
-
|
|
3503
|
+
GaliciaComponent.prototype.accessToken;
|
|
3504
|
+
/** @type {?} */
|
|
3505
|
+
GaliciaComponent.prototype.gaUrlApi;
|
|
3506
|
+
/** @type {?} */
|
|
3507
|
+
GaliciaComponent.prototype.vkUrlApi;
|
|
3508
|
+
/** @type {?} */
|
|
3509
|
+
GaliciaComponent.prototype.userId;
|
|
3403
3510
|
/** @type {?} */
|
|
3404
|
-
|
|
3511
|
+
GaliciaComponent.prototype.logoGa;
|
|
3405
3512
|
/** @type {?} */
|
|
3406
|
-
|
|
3513
|
+
GaliciaComponent.prototype.storeId;
|
|
3407
3514
|
/** @type {?} */
|
|
3408
|
-
|
|
3515
|
+
GaliciaComponent.prototype.storeName;
|
|
3409
3516
|
/** @type {?} */
|
|
3410
|
-
|
|
3517
|
+
GaliciaComponent.prototype.sessionId;
|
|
3411
3518
|
/** @type {?} */
|
|
3412
|
-
|
|
3519
|
+
GaliciaComponent.prototype.checkoutId;
|
|
3413
3520
|
/** @type {?} */
|
|
3414
|
-
|
|
3521
|
+
GaliciaComponent.prototype.data;
|
|
3415
3522
|
/** @type {?} */
|
|
3416
|
-
|
|
3523
|
+
GaliciaComponent.prototype.statusPay;
|
|
3417
3524
|
/** @type {?} */
|
|
3418
|
-
|
|
3525
|
+
GaliciaComponent.prototype.qrImage;
|
|
3419
3526
|
/** @type {?} */
|
|
3420
|
-
|
|
3527
|
+
GaliciaComponent.prototype.billNumber;
|
|
3421
3528
|
/** @type {?} */
|
|
3422
|
-
|
|
3529
|
+
GaliciaComponent.prototype.errorMessage;
|
|
3423
3530
|
/** @type {?} */
|
|
3424
|
-
|
|
3531
|
+
GaliciaComponent.prototype.OinitPayment;
|
|
3425
3532
|
/** @type {?} */
|
|
3426
|
-
|
|
3533
|
+
GaliciaComponent.prototype.isGeneratingQr;
|
|
3427
3534
|
/** @type {?} */
|
|
3428
|
-
|
|
3535
|
+
GaliciaComponent.prototype.paymentCompleted;
|
|
3429
3536
|
/** @type {?} */
|
|
3430
|
-
|
|
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;
|
|
3431
3550
|
/**
|
|
3432
3551
|
* @type {?}
|
|
3433
3552
|
* @private
|
|
3434
3553
|
*/
|
|
3435
|
-
|
|
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;
|
|
3436
3564
|
}
|
|
3437
3565
|
|
|
3438
3566
|
/**
|
|
3439
3567
|
* @fileoverview added by tsickle
|
|
3440
|
-
* Generated from: lib/
|
|
3568
|
+
* Generated from: lib/galicia/galicia.module.ts
|
|
3441
3569
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3442
3570
|
*/
|
|
3443
|
-
|
|
3571
|
+
/** @type {?} */
|
|
3572
|
+
const COMPONENTS$2 = [
|
|
3573
|
+
GaliciaComponent
|
|
3574
|
+
];
|
|
3575
|
+
class GaliciaModule {
|
|
3444
3576
|
}
|
|
3445
|
-
|
|
3577
|
+
GaliciaModule.decorators = [
|
|
3446
3578
|
{ type: NgModule, args: [{
|
|
3447
3579
|
declarations: [
|
|
3448
|
-
|
|
3580
|
+
COMPONENTS$2
|
|
3581
|
+
],
|
|
3582
|
+
exports: [
|
|
3583
|
+
COMPONENTS$2
|
|
3449
3584
|
],
|
|
3450
3585
|
imports: [
|
|
3451
3586
|
CommonModule,
|
|
3452
3587
|
FormsModule,
|
|
3453
3588
|
ReactiveFormsModule,
|
|
3454
|
-
|
|
3455
|
-
],
|
|
3456
|
-
exports: [
|
|
3457
|
-
BankTransferComponent
|
|
3589
|
+
RouterModule,
|
|
3458
3590
|
],
|
|
3459
3591
|
providers: [
|
|
3460
|
-
|
|
3592
|
+
GaliciaApiService
|
|
3461
3593
|
]
|
|
3462
3594
|
},] }
|
|
3463
3595
|
];
|
|
@@ -3474,14 +3606,15 @@ const LIB_MODULES = [
|
|
|
3474
3606
|
PaypalModule,
|
|
3475
3607
|
GoCuotasModule,
|
|
3476
3608
|
ModoModule,
|
|
3477
|
-
|
|
3609
|
+
GaliciaModule
|
|
3478
3610
|
];
|
|
3479
3611
|
class VkPaymentsModule {
|
|
3480
3612
|
}
|
|
3481
3613
|
VkPaymentsModule.decorators = [
|
|
3482
3614
|
{ type: NgModule, args: [{
|
|
3483
3615
|
imports: LIB_MODULES,
|
|
3484
|
-
exports: LIB_MODULES
|
|
3616
|
+
exports: LIB_MODULES,
|
|
3617
|
+
declarations: []
|
|
3485
3618
|
},] }
|
|
3486
3619
|
];
|
|
3487
3620
|
|
|
@@ -3497,5 +3630,5 @@ VkPaymentsModule.decorators = [
|
|
|
3497
3630
|
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
3498
3631
|
*/
|
|
3499
3632
|
|
|
3500
|
-
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 };
|
|
3501
3634
|
//# sourceMappingURL=vk-payments.js.map
|