ng-easycommerce 0.0.644 → 0.0.646
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/README.md +4 -0
- package/bundles/ng-easycommerce.umd.js +22 -2
- package/bundles/ng-easycommerce.umd.js.map +1 -1
- package/bundles/ng-easycommerce.umd.min.js +1 -1
- package/bundles/ng-easycommerce.umd.min.js.map +1 -1
- package/esm2015/lib/ec-component/auth-ec/register-form-ec/register-form-ec.component.js +16 -2
- package/esm2015/lib/ec-component/widgets-ec/place-to-pay-ec/place-to-pay-ec.component.js +8 -2
- package/esm5/lib/ec-component/auth-ec/register-form-ec/register-form-ec.component.js +16 -2
- package/esm5/lib/ec-component/widgets-ec/place-to-pay-ec/place-to-pay-ec.component.js +8 -2
- package/fesm2015/ng-easycommerce.js +22 -2
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +22 -2
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/widgets-ec/place-to-pay-ec/place-to-pay-ec.component.d.ts +1 -0
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# version 0.0.646
|
|
2
|
+
- place-to-pay: mejorar mensaje de error al fallar el pago e incluir número de orden
|
|
3
|
+
# version 0.0.645
|
|
4
|
+
- mejorar manejo de errores al registrar email no valido. En `register-form-ec`.
|
|
1
5
|
# version 0.0.644
|
|
2
6
|
- se corrigio para considerar `allowAnyPaymentMethod` y `allowExceedBalance` antes de redirigir al checkout
|
|
3
7
|
# version 0.0.643
|
|
@@ -13845,7 +13845,21 @@
|
|
|
13845
13845
|
}, function (error) {
|
|
13846
13846
|
_this.register_loading = false;
|
|
13847
13847
|
if (error.status == 400) {
|
|
13848
|
-
|
|
13848
|
+
var backendError = error.error;
|
|
13849
|
+
if (backendError &&
|
|
13850
|
+
backendError.errors &&
|
|
13851
|
+
backendError.errors.email &&
|
|
13852
|
+
backendError.errors.email.length > 0) {
|
|
13853
|
+
// Mostrar el primer mensaje de error de email
|
|
13854
|
+
_this.toastr.showPersistent(backendError.errors.email[0]);
|
|
13855
|
+
}
|
|
13856
|
+
else if (backendError && backendError.message) {
|
|
13857
|
+
// Si no hay mensaje específico, pero hay mensaje general del backend
|
|
13858
|
+
_this.toastr.showPersistent(backendError.message);
|
|
13859
|
+
}
|
|
13860
|
+
else {
|
|
13861
|
+
_this.toastr.showPersistent('El email ingresado ya se encuentra registrado.');
|
|
13862
|
+
}
|
|
13849
13863
|
}
|
|
13850
13864
|
else {
|
|
13851
13865
|
_this.toastr.show('Error en el registro. Vuelva a intentarlo más tarde.');
|
|
@@ -19396,6 +19410,12 @@
|
|
|
19396
19410
|
}, function (err) { return _this.processError('Ocurrió un error al procesar el pago. Inténtelo más tarde.'); });
|
|
19397
19411
|
};
|
|
19398
19412
|
_this.ecOnConstruct();
|
|
19413
|
+
console.log("method", _this.method);
|
|
19414
|
+
console.log("previousFailureAmount", _this.previousFailureAmount);
|
|
19415
|
+
_this.cartService.cart.subscribe(function (cart) {
|
|
19416
|
+
_this.cart = cart;
|
|
19417
|
+
});
|
|
19418
|
+
console.log("cart", _this.cart);
|
|
19399
19419
|
return _this;
|
|
19400
19420
|
}
|
|
19401
19421
|
PlaceToPayEcComponent.prototype.ngOnInit = function () {
|
|
@@ -19431,7 +19451,7 @@
|
|
|
19431
19451
|
PlaceToPayEcComponent = __decorate$20([
|
|
19432
19452
|
core.Component({
|
|
19433
19453
|
selector: 'app-place-to-pay-ec',
|
|
19434
|
-
template: "<div class=\"text-center\">\n <ng-container *ngIf=\"url; else loadingUrl\">\n <ng-container *ngIf=\"!loading; else loadingTemp\">\n <button (click)=\"iniciar()\" class=\"btn btn-outline-secondary rounded-0 comprar mt-3\">\n {{ buttonText }}\n </button>\n\n <!-- Mensaje de intento previo fallido -->\n <div *ngIf=\"hasPreviousFailure\" class=\"alert alert-danger mt-3\">\n El pago no se pudo realizar el {{ previousFailureDate }}\n por un monto de {{ previousFailureAmount | ecCurrencySymbol }}.\n </div>\n </ng-container>\n </ng-container>\n</div>\n\n<ng-template #loadingUrl>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-2\">\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n</ng-template>\n\n<ng-template #loadingTemp>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-2\">\n <h3>Procesando el pago por Place to Pay</h3>\n <h5>Recuerde hacer click en \"Volver al sitio\" desde Place to Pay para finalizar la compra.</h5>\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-5\">\n <hr>\n </div>\n <div class=\"col-2 text-center\">\n <label>o</label>\n </div>\n <div class=\"col-5\">\n <hr>\n </div>\n </div>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-2\">\n <button (click)=\"clickClose()\" class=\"btn btn-outline-secondary rounded-0 comprar\">Cancelar pago</button>\n </div>\n</ng-template>",
|
|
19454
|
+
template: "<div class=\"text-center\">\n <ng-container *ngIf=\"url; else loadingUrl\">\n <ng-container *ngIf=\"!loading; else loadingTemp\">\n <button (click)=\"iniciar()\" class=\"btn btn-outline-secondary rounded-0 comprar mt-3\">\n {{ buttonText }}\n </button>\n\n <!-- Mensaje de intento previo fallido -->\n <div *ngIf=\"hasPreviousFailure\" class=\"alert alert-danger mt-3\">\n El pago del pedido con n\u00FAmero de orden {{ cart.number }} no se pudo realizar el {{ previousFailureDate }}\n por un monto de {{ previousFailureAmount | ecCurrencySymbol }}.\n </div>\n </ng-container>\n </ng-container>\n</div>\n\n<ng-template #loadingUrl>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-2\">\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n</ng-template>\n\n<ng-template #loadingTemp>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-2\">\n <h3>Procesando el pago por Place to Pay</h3>\n <h5>Recuerde hacer click en \"Volver al sitio\" desde Place to Pay para finalizar la compra.</h5>\n <app-loading-full-ec></app-loading-full-ec>\n </div>\n <div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-5\">\n <hr>\n </div>\n <div class=\"col-2 text-center\">\n <label>o</label>\n </div>\n <div class=\"col-5\">\n <hr>\n </div>\n </div>\n </div>\n <div class=\"d-flex flex-column justify-content-center align-items-center mt-2\">\n <button (click)=\"clickClose()\" class=\"btn btn-outline-secondary rounded-0 comprar\">Cancelar pago</button>\n </div>\n</ng-template>",
|
|
19435
19455
|
styles: [""]
|
|
19436
19456
|
})
|
|
19437
19457
|
], PlaceToPayEcComponent);
|