What's New
Tagged: easycheckout
This topic contains 32 replies, has 6 voices, and was last updated by joselumolli Dec '22.
- AuthorPosts
Hi everyone,
I and my team are having troubles integrating the stripe_module with Easy Checkout.
The problem is that, in the credit cart form, the various fields are not loaded.
According to this page, which deals with this very problem, (https://www.sunnytoo.com/product/easycheckout-one-page-checkout-module-prestashop-1-7#stripe_202_ecommerce), the integration is possible by modifying some files in stripe module (see paragraph “Stripe payment module v2”).
Howhever, the changes it suggests to make are not possible because some of the lines of code that i am supposed to change don’t even exist in the version of the module we are using.E.g: it says to change the following line of code in /modules/stripe_official/stripe_official.php:
if (!in_array($this->context->controller->php_self, ['order', 'order-opc'])) {
but i can’t see in the file.
I can see that this guide considers versions 2.1.0 and 2.0.8 of the stripe module, whereas we are using version 2.1.1, which could be different.
Here are the specs of the platform in use:
Prestashop version: 1.7.6.5
Stripe payement module: v2.1.1 by 202 ecommerce
v2.6.7 di SUNNYTOO.COMIf someone is able to help us that would be very appreciated.
Thank you in advance and please have a splendid day.Daniele
Attachments:
Hi,
I modified the file stripe_official.php file for you. you need to follow my guide to modify the payment_form_card.tpl and the paymment.js file.
Best regards.Attachments:
Hi,
@pgo19 I modified the .tpl file and the .js file for you, please clear the Smarty cache and browser cache to test it again.
@gabiflit Please open a new topic, send me your backoffice access and FTP in a private, I will investigate it for you.
Best regards.Hi!.
My version of prestashop is 1.7.8.7 and stripe version is 2.4.6.
I have followed the instructions on this page step by step: https://www.sunnytoo.com/product/easycheckout-one-page-checkout-module-prestashop-1-7#stripe_2_202_ecommerce
Exactly in the section: Stripe payment module v2.
I can’t find the following lines to replace:
1. Edit the /modules/stripe_official/stripe_official.php file,
– if (!in_array($this->context->controller->php_self, [‘order’, ‘order-opc’])) {
“THIS LINE DOES NOT EXIST”
2. Add this code to the hookPaymentOptions function in the /modules/stripe_official/stripe_official.php file.
– If your module version is less than or equal to 2.2.3, then do this replacement.
$stripeCustomer->getCustomerById($this->context->customer->id);“THIS LINE DOES NOT EXIST”
4. Do two replacements to the /modules/stripe_official/views/js/paymment.js file.
Replace the e(); or e(), in front of this code $(“.payment_module.pointer-box”) withRemove this code if you can find it..
,new MutationObserver(function(t){$.each(t,function(t,r){var n=$(r.addedNodes);d()(n).call(n,”#stripe-card-payment”).addBack(“#stripe-card-payment”).length&&e()})}).observe(document.body,{childList:!0,subtree:!0})
“THIS LINE DOES NOT EXIST”
,new MutationObserver((function(t){$.each(t,(function(t,r){var n=$(r.addedNodes);f()(n).call(n,”#stripe-card-payment”).addBack(“#stripe-card-payment”).length&&e()}))})).observe(document.body,{childList:!0,subtree:!0})
“THIS LINE DOES NOT EXIST”
If you can find this code N(n,t.error)
Then replace it withsteco_payment.cancle_confirm(),N(n,t.error)
“THIS LINE DOES NOT EXIST”
If you can find this code D(n,t.error)
Then replace it withsteco_payment.cancle_confirm(),D(n,t.error)
“THIS LINE DOES NOT EXIST”
If you can find this code G(n,t.error)
Then replace it withsteco_payment.cancle_confirm(),G(n,t.error)
“THIS LINE DOES NOT EXIST”
If you can find this code R(n,t.error)
Then replace it withsteco_payment.cancle_confirm(),R(n,t.error)
“THIS LINE DOES NOT EXIST”
If you can find this code I(n,t.error)
Then replace it withsteco_payment.cancle_confirm(),I(n,t.error)
“THIS LINE DOES NOT EXIST”
I have only been able to change some things… the rest of the things do not appear.
Obviously when you get to the payment page, stripe does not work.
I need to fix this somehow.
I attach an image
Attachments:
¡Hola!.
Mi versión de prestashop es 1.7.8.7 y la versión de stripe es 2.4.6.
El problema es que, en el formulario de la cesta de crédito, no se cargan los distintos campos para introducir la tarjeta, si desactivo el modulo easycheckout resulta que stripe si funciona correctamente,
estoy desesperado!!- AuthorPosts
You must be logged in to reply to this topic.