Blank page with FastPay return url

  • Posts: 13
  • Thank you received: 0
10 years 10 months ago #140623

I am trying to use the PayFast payment plugin that I downloaded from Github. It is working well in that the payment request is sent successfully to PayFast. The problem is when the client is returned to our website they are presented with a blank screen. The payment is successful as the order status is updated but the blank screen is the problem.

With error reporting and debugging on I get the following error message:
Notice: Undefined property: plgHikashoppaymentCommon::$payment_params in ...plugins/hikashoppayment/common/common.php on line 25 Fatal error: Cannot pass parameter 1 by reference in ...plugins/hikashoppayment/common/common.php on line 111

I have noticed that the PayFast plugin directory does not sit in the hikashoppayment directory in the plugins directory but in a directory called payment in the plugins directory.

Any help or ideas on how to fix this will be appreciated.

I am using HikaShop Business: 2.2.3 and Joomla 3.2.1
php version 5.4.4-14+deb7u7

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 10 months ago #140630

Hi,

In the file "plugins/hikashoppayment/common/common.php" please replace

	$this->modifyOrder(false, null, null, $email);
By
	$o = false;
	$this->modifyOrder($o, null, null, $email);
You can also replace the line
if(is_object($plugin))$plugin->params = json_encode($this->payment_params);
By:
if(is_object($plugin))$plugin->params = json_encode(@$this->payment_params);
Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: visabiliy

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
10 years 10 months ago #140641

Thank you for your help and for doing so so quickly.

I have made these changes but I now receive the following error:

Notice
You must provide at least one recipient email address.

This message is shown on a blank screen.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 10 months ago #140709

Can you turn on the debug mode and error reporting options of the joomla configuration and try again and do a screenshot of the page with the issue ?

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
10 years 10 months ago #140718

Thank you again for your help. I hope that this helps.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 10 months ago #140769

That's really strange. This means that the payment gateway redirect the user to the payment notification URL but the plugin of techjoomla doesn't provide the return URL for the redirect to the thank you page.

You'll have to add the line:

'return'=>HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id='.$data['custom_str1'],

after the line:
'txn_type'=>'',
in the file plugins/payment/fastpay/fastpay.php

Please Log in or Create an account to join the conversation.

  • Posts: 1
  • Thank you received: 0
10 years 9 months ago #141302

Hi there
We need to use PayFast and would just like to know if the solution provided by Nicolas finally sorted out the problem?
Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
10 years 9 months ago #141606

Hello again Nicolas

Thank you for taking the time to help me with this issue. I was away for a short while so please firgive the delay in replying to your message.

I think that you have just about completed this plugin. I now get a notice at the top of the page that says:
You must provide at least one recipient email address.
And in a new line:
Thank you for your order.

Do you know why we are getting the email address issue?
Is it possible to include the thank you for your order message in the main body of the website instead of in the notice space at the top of the site?

I have attached a screenshot.

Jenn I hope this helps you to.

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 9 months ago #141795

If you enter a return URL in the plugin options, you can have it go wherever you want on your website with the text you want (for example a thank you joomla article page).

If you want to move around the messages, you can do that in your template (you'll have to ask your template provider for the exact procedure).

Regarding the email error, it means that one of the emails which is sent after the payment couldn't be sent because the recipient email was missing.
Which emails did you get after the payment ? Could you maybe do some screenshot ? That way we should be able to tell you which email is the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 392
  • Thank you received: 0
10 years 5 months ago #158903

Hi Nicolas,

I am getting the same error: You must provide at least one recipient email address when order using credit cards are put through. I have checked to see if the emails are set in the backend and they are.

I create an article and set the return page to that article, though the error still pops up for a few seconds before redirecting to the article.



Thanks for your help :)

Last edit: 10 years 2 months ago by Bugger101.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 5 months ago #159048

Hi,

You're not using FastPay, so the cause of that error message being displayed is different.
In your case it would mean that the email address of the receiver is missing in the email and thus probably comes from either the "Payment notifications email address" or the "Order creation notifications email address" settings of the configuration are empty.
Could you check these ?

Please Log in or Create an account to join the conversation.

  • Posts: 392
  • Thank you received: 0
10 years 5 months ago #159133

Hi Nicolas,

I just checked and all the emails are set correctly.

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 3 months ago #168457

Hi,

Do you have solved your problem ?
Which version of HikaShop do you have ? As I remember there was an issue on the emails and it should have been corrected.

Please Log in or Create an account to join the conversation.

Time to create page: 0.081 seconds
Powered by Kunena Forum