ng-easycommerce 0.0.466 → 0.0.467
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 +2 -0
- package/assets/decidirFormEc.html +18 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# version 0.0.467
|
|
2
|
+
- Se agrega el campo "Fecha de nacimiento" en el formulario de decidirFormEc
|
|
1
3
|
# version 0.0.466
|
|
2
4
|
- Se mejoran las funciones **plus** y **less** de los componentes products y product-detail, para permitir agregar mas cantidad de uno y sus respectivos controles.
|
|
3
5
|
|
|
@@ -204,10 +204,19 @@
|
|
|
204
204
|
</div>
|
|
205
205
|
</div>
|
|
206
206
|
</div>
|
|
207
|
-
<div class="
|
|
208
|
-
<
|
|
209
|
-
|
|
210
|
-
|
|
207
|
+
<div class="row">
|
|
208
|
+
<div class="col-12 col-md-8">
|
|
209
|
+
<div class="form-floating mb-3">
|
|
210
|
+
<input class="form-control" type="text" data-decidir="card_holder_name" placeholder="TITULAR" value="" />
|
|
211
|
+
<label for="card_holder_name">Nombre del titular:</label>
|
|
212
|
+
</div>
|
|
213
|
+
</div>
|
|
214
|
+
<div class="col-12 col-md-4">
|
|
215
|
+
<div class="form-floating mb-3">
|
|
216
|
+
<input class="form-control" type="date" data-decidir="card_holder_birthday" placeholder="" value="" />
|
|
217
|
+
<label for="card_holder_birthday">Fecha de nacimiento:</label>
|
|
218
|
+
</div>
|
|
219
|
+
</div>
|
|
211
220
|
</div>
|
|
212
221
|
<div class="row">
|
|
213
222
|
<div class="col-md-6 col-12">
|
|
@@ -310,7 +319,8 @@
|
|
|
310
319
|
const sendToken = (data) => {
|
|
311
320
|
data['fraud_detection'] = {
|
|
312
321
|
"device_unique_identifier": session_id
|
|
313
|
-
}
|
|
322
|
+
}
|
|
323
|
+
console.log('Datos para el envio: ',data)
|
|
314
324
|
console.log(dataDecidir)
|
|
315
325
|
if(dataDecidir?.config?.public_cybersource != 'deshabilitado'){
|
|
316
326
|
data['address'] = {
|
|
@@ -318,6 +328,7 @@
|
|
|
318
328
|
'number' : document.getElementById('nro').value
|
|
319
329
|
}
|
|
320
330
|
}
|
|
331
|
+
|
|
321
332
|
try {
|
|
322
333
|
fetch(dataRedirect, {
|
|
323
334
|
method: 'POST',
|
|
@@ -351,6 +362,7 @@
|
|
|
351
362
|
}
|
|
352
363
|
|
|
353
364
|
const sdkResponseHandler = (status, response) => {
|
|
365
|
+
console.log('Respuesta: ',response)
|
|
354
366
|
if (status != 200 && status != 201) {
|
|
355
367
|
//Manejo de error: Ver Respuesta de Error
|
|
356
368
|
processError(response)
|
|
@@ -362,6 +374,7 @@
|
|
|
362
374
|
|
|
363
375
|
const sendForm = (event) => {
|
|
364
376
|
isLoad(true)
|
|
377
|
+
console.log('Formulario: ',form)
|
|
365
378
|
event.preventDefault();
|
|
366
379
|
decidir.createToken(form, sdkResponseHandler);
|
|
367
380
|
return false;
|