Support

Home Forums Event Espresso Premium PayFast with Espresso version 5

PayFast with Espresso version 5

Posted: April 17, 2023 at 9:22 am


rasada

April 17, 2023 at 9:22 am

Dear Support – do you have any idea of the payfast gateway for espresso version 5. as i got errors and was forced to update to version 5 but now no working version of payfast – this is a bit urgent for the client and would really appreciate any news you may have i will endeavour to speak to payfast tomorrow
Thank you


Tony

  • Support Staff

April 17, 2023 at 4:55 pm

Hi there,

The PayFast payment method will need to be updated to be inline with the latest changes within core.

The fatal you are likely getting now will be from:

\plugins\Payfast\payment_methods\Payfast\EE_PMT_Payfast.pm.php

Line 57 will be:

public function finalize_payment_for($transaction)

Change that to:

public function finalize_payment_for(EE_Transaction $transaction): ?EE_Payment

That should allow the PayFast payment method to work for now, but PayFast should include the above in an update to prevent the fatal happening again.


rasada

April 18, 2023 at 12:48 am

That is a big help – thank you – i think it is working or at least no error
one more question please
during the installation i upgraded the DB for ver 5
in trying to fix it i downgraded DB to ver 4
now i am scared to upgrade to 5 incase it falls over again
any suggestions?


rasada

April 18, 2023 at 2:13 am

I managed to answer my own question _
i needed to restore the old database and now its all there and tested with ver 5 and Payfast
thanks so much for the help


Tony

  • Support Staff

April 18, 2023 at 4:12 am

You actually didn’t need to restore the database.

The migration from EE4.10 -> EE5 copies values from one table into another, it does not remove the data currently so switching between EE4.10.46 and EE5.0.X is safe to do.

Side note regarding EE5, have you enabled the advanced editor or still using the ‘legacy’ editor (which is the one from EE4)?

If using legacy go to Event Espresso -> Events -> Default Settings

Set ‘Activate Advanced Editor?’ to ‘Advanced Editor’

That will enable the new advanced event editor for you.

The support post ‘PayFast with Espresso version 5’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso