Jump to content

Paybox by Prestashop on 1.16.1.18


loulouklm

Recommended Posts

Hello,

I'm affraid about paybox module made by Prestashop. Some bugs are really not acceptable for a module paid 249 €. This one => https://addons.prestashop.com/fr/paiement-carte-wallet/8066-verifone-e-commerce-paybox-15-16-17.html

I put here what I have done to make it works.

/modules/paybox/classes/PayboxDirect.php
Line 70
remove unset var => if ((int)$pbx->configs['PBX_DEMO_MODE'] === 0)
Replace by => if ((int)Configuration::get('PBX_DEMO_MODE') === 0)


/modules/paybox/directvalidation.php
Line 190 add utf8_decode => $paybox_wallet->updateCardInfo($output['PORTEUR'], utf8_decode($output['REFABONNE']), $output['DATEVAL'], $pan);
Line 193 $paybox_wallet instead of $paybox + utf8_decode on REFABONNE + delete $context->customer->id, => $paybox_wallet->createWallet($output['PORTEUR'], utf8_decode($output['REFABONNE']), $fields['DATEVAL'], $pan); 
 

Hope it will help anybody to correct this module. 

I know that there is others bugs but in my site I don't use it. My IDE underline in red some undefined var in /modules/paybox/classes/PayboxDirect.php :
- line 111 $paid is undefined => $order->total_paid_real = $paid;
- line 116 $cart is undefined => $products = $cart->getProducts();

Not tested by Prestashop Team but well sell on addon platform. it's a shame.
I report this bug on the forge. Hope they will do something.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...