culqi / culqi-prestashop Goto Github PK
View Code? Open in Web Editor NEWMódulo PrestaShop de Culqi.
License: MIT License
Módulo PrestaShop de Culqi.
License: MIT License
Hola. No soy desarrollador, pero intuyo a grandes rasgos algunas cosas. He montado una tienda en prestashop 1.7.1.1. La tienda es www.maqorito.com
He tomado la última actualización del plug in 3.02 y he seguido los pasos para incluir el campo teléfono como obligatorio, sin embargo tengo problemas, sea con cuenta invitado o para crear una nueva cuenta. Por el mensaje, entiendo que es algo relacionado con el formato de cliente, en la línea 215 del archivo php. Si intento hacer un pago de una compra como invitado, el proceso de checkout se corta antes de completar el formulario de dirección, arrojando las siguientes 10 líneas de error (he activado el depurador de prestashop para obtener el mensaje):
ContextErrorException in CustomerFormatter.php line 215:
Warning: Invalid argument supplied for foreach()
in CustomerFormatter.php line 215
at ErrorHandler->handleError('2', 'Invalid argument supplied for foreach()', '/home/romy1976/public_html/classes/form/CustomerFormatter.php', '215', array('format' => array('id_customer' => object(FormField), 'id_gender' => object(FormField), 'firstname' => object(FormField), 'lastname' => object(FormField), 'email' => object(FormField), 'password' => object(FormField), 'birthday' => object(FormField), 'optin' => object(FormField), 'ps_emailsubscription_newsletter' => object(FormField)), 'genderField' => object(FormField), 'gender' => object(Gender), 'additionalCustomerFormFields' => array('ps_emailsubscription' => array(object(FormField)), 'an_staticblocks' => ''), 'moduleName' => 'an_staticblocks', 'additionnalFormFields' => '', 'formField' => object(FormField))) in CustomerFormatter.php line 215
at CustomerFormatterCore->getFormat() in AbstractForm.php line 153
at AbstractFormCore->fillWith(array('id' => null, 'id_shop' => null, 'id_shop_group' => null, 'secure_key' => null, 'note' => null, 'id_gender' => '0', 'id_default_group' => '1', 'id_lang' => null, 'lastname' => null, 'firstname' => null, 'birthday' => null, 'email' => null, 'newsletter' => null, 'ip_registration_newsletter' => null, 'newsletter_date_add' => null, 'optin' => null, 'website' => null, 'company' => null, 'siret' => null, 'ape' => null, 'outstanding_allow_amount' => '0', 'show_public_prices' => '0', 'id_risk' => null, 'max_payment_days' => '0', 'passwd' => null, 'last_passwd_gen' => null, 'active' => true, 'is_guest' => '0', 'deleted' => '0', 'date_add' => null, 'date_upd' => null, 'years' => null, 'days' => null, 'months' => null, 'geoloc_id_country' => null, 'geoloc_id_state' => null, 'geoloc_postcode' => null, 'logged' => '0', 'id_guest' => '4717', 'groupBox' => null, 'reset_password_token' => null, 'reset_password_validity' => null, 'id_shop_list' => null, 'force_id' => false, 'id_customer' => null)) in CustomerForm.php line 76
at CustomerFormCore->fillFromCustomer(object(Customer)) in CheckoutPersonalInformationStep.php line 60
at CheckoutPersonalInformationStepCore->handleRequest(array('controller' => 'order')) in CheckoutProcess.php line 57
at CheckoutProcessCore->handleRequest(array('controller' => 'order')) in OrderController.php line 202
at OrderControllerCore->initContent() in Controller.php line 205
at ControllerCore->run() in Dispatcher.php line 369
at DispatcherCore->dispatch() in index.php line 28
Si por el contrario intento crear una nueva cuenta para poder comprar, también obtengo un error, pero de solo 7 líneas. Su ayuda por favor. Es un error de configuración de mi parte o se trata de otro problema.
ContextErrorException in CustomerFormatter.php line 215:
Warning: Invalid argument supplied for foreach()
in CustomerFormatter.php line 215
at ErrorHandler->handleError('2', 'Invalid argument supplied for foreach()', '/home/romy1976/public_html/classes/form/CustomerFormatter.php', '215', array('format' => array('id_customer' => object(FormField), 'id_gender' => object(FormField), 'firstname' => object(FormField), 'lastname' => object(FormField), 'email' => object(FormField), 'password' => object(FormField), 'birthday' => object(FormField), 'optin' => object(FormField), 'ps_emailsubscription_newsletter' => object(FormField)), 'genderField' => object(FormField), 'gender' => object(Gender), 'additionalCustomerFormFields' => array('ps_emailsubscription' => array(object(FormField)), 'an_staticblocks' => ''), 'moduleName' => 'an_staticblocks', 'additionnalFormFields' => '', 'formField' => object(FormField))) in CustomerFormatter.php line 215
at CustomerFormatterCore->getFormat() in AbstractForm.php line 153
at AbstractFormCore->fillWith(array('create_account' => '1', 'controller' => 'authentication')) in AuthController.php line 51
at AuthControllerCore->initContent() in Controller.php line 205
at ControllerCore->run() in Dispatcher.php line 369
at DispatcherCore->dispatch() in index.php line 28
Hola,
Nuevo problemita, cuando selectiono otro metodo de pago (i.e. tranferencia bancaria) tengo el error siguiente en la consola javaScript y no puedo procesar el pago :
index.php?controller=order:809 Uncaught TypeError: Cannot read property 'user_message' of undefined
at charge (index.php?controller=order:809)
at HTMLButtonElement.<anonymous> (index.php?controller=order:759)
at HTMLButtonElement.dispatch (bottom-076ab9.js:100)
at HTMLButtonElement.elemData.handle (bottom-076ab9.js:92)
charge @ index.php?controller=order:809
(anonymous) @ index.php?controller=order:759
dispatch @ bottom-076ab9.js:100
elemData.handle @ bottom-076ab9.js:92
Cuando miro al dicho archivo, parece que el error esta en esta linea :
showResult('red',Culqi.error.user_message);
pues parece que el objeto Culqi.error no esta definido...
You don't need solve all issues, if you can solve just one, you can send us a PR 👍
Report: https://gist.github.com/joelibaceta/d38241814e93aa2a1f12c46f585cc13e
Hola, estoy teniendo un problema al querer hacer el checkout con el plugin de culqi. Al hacer click en pagar me muestra el mensaje de error:
Hubo algunos problemas al intentar validar tu compra. Contáctanos para ayudarte.
Y aparte en el inspeccionador me muestra el mensaje Config: undefined
.
Adjunto las imagenes del error para mayor conocimiento:
Agregar la sección de Licencia al Readme.md
Hola, estoy teniendo estos errores en javascript en 2 webs.
Caso 1: Llega hasta la ventana de confirmación de pago, ingreso los datos de la tarjeta de prueba y me lanza estos errores.
1512027697395.log
Caso 2: En la pagina del carrito, elijo el medio de pago y la página se queda en blanco. Estos son los errores que aparecen en el log de Chrome.
1512028089070.log
Hola Chicos,
Gracias por este sistema y su integración super facil !
Estoy probando la integración de Culqi con nuestra tienda prestashop 1.7.
Algunas Mejoras sugeridas :
Estoy tratando de enviar al cliente después de pagar a la pagina de orden recibida, he intentado redirigir después de que imprima "pago completado" pero no conserva el key de la oreden.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.