Jump to content

Struggling with a payment module


Recommended Posts

Is it possible to receive some assistance with configuring a module please?

When the module is disabled, cart functions correctly.

When the module is enabled, cart doesn't load correctly and payment options don't show.

With debug mode on, the error returned is:

Notice: Trying to get property 'id_customer' of non-object in /home/xxxxx/public_html/modules/payfast/payfast.php on line 478

Fatal error: Uncaught Error: Call to a member function getOrderTotal() on null in /home/xxxxx/public_html/modules/payfast/payfast.php:483 Stack trace: #0 /home/xxxxx/public_html/modules/payfast/payfast.php(466): PayFast->getCardPaymentOption() #1 /home/xxxxx/public_html/classes/Hook.php(968): PayFast->hookPaymentOptions(Array) #2 /home/xxxxx/public_html/classes/Hook.php(407): HookCore::coreCallHook(Object(PayFast), 'hookPaymentOpti...', Array) #3 /home/xxxxx/public_html/classes/Hook.php(903): HookCore::callHookOn(Object(PayFast), 'paymentOptions', Array) #4 /home/xxxxx/public_html/src/Adapter/HookManager.php(81): HookCore::exec('paymentOptions', Array, NULL, true, true, false, NULL) #5 /home/xxxxxpublic_html/src/PrestaShopBundle/Service/Hook/HookFinder.php(70): PrestaShop\PrestaShop\Adapter\HookManager->exec('paymentOptions', Array, NULL, true) #6 /home/xxxxx/public_html/classes/checkout/PaymentOptionsFinder.php(56): PrestaShopBundle\Service\Hook\HookFinder->find() #7 /home/xxxxx/public_html/cl in /home/xxxxx/public_html/modules/payfast/payfast.php on line 483

Thank you

Edited by Simply123 (see edit history)
Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...
On 2/20/2023 at 12:05 PM, Simply123 said:

When the module is enabled, cart doesn't load correctly and payment options don't show.

its helps knowing which modules are involved. Most likely you have one payment module too much active.


2 hours ago, planetseb said:

did you manage to solve this problem?

When having a problem be so kind and tell in detail what is happening, when did it start to occur, first install, running since, updated from and so on.  

Link to comment
Share on other sites

yeah I did, the problem is the payfast module is old, like really really old (was last updated 2 to 3 years ago), you have to downgrade your prestashop installation to the prestashop builds (originally had Prestashop 8 on the store) and that's the only way I could get it to work, hopefully Payfast will get their developers to update the module to be compatible with Prestashop 8

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...