Eway Payments Failing after Upgrade

  • Posts: 256
  • Thank you received: 21
9 years 3 weeks ago #219328

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5.30
-- Browser(s) name and version -- : All
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$order_number in /home/chopshop/public_html/chopshopbutchers.com.au/plugins/hikashoppayment/eway/eway.php on line 111

Since upgrading to the latest Joomla and Hikashop versions Eway payments are failing. I should add, the template was replaced as well.

When Bootstrap is turned on in Hikashop Eway payments fail with no error - the payment screen simply refreshes. With Bootstrap turned off in Hikashop the payments succeed (but with the warning "Notice: Undefined property: stdClass::$order_number in /home/chopshop/public_html/chopshopbutchers.com.au/plugins/hikashoppayment/eway/eway.php on line 111" which may have no baring.)

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 3 weeks ago #219371

Hi,

Please edit the plugin eway and replace

$email = new stdClass();
$email->subject = JText::sprintf('PAYMENT_NOTIFICATION_FOR_ORDER','eWAY','Accepted',$order->order_number);
$url = HIKASHOP_LIVE.'administrator/index.php?option=com_hikashop&ctrl=order&task=listing';
$order_text = "\r\n".JText::sprintf('NOTIFICATION_OF_ORDER_ON_WEBSITE',$order->order_number,HIKASHOP_LIVE);
$order_text .= "\r\n".str_replace('<br/>',"\r\n",JText::sprintf('ACCESS_ORDER_WITH_LINK',$url));
$body = str_replace('<br/>',"\r\n",JText::sprintf('PAYMENT_NOTIFICATION_STATUS','eWAY','Accepted')).' '.JText::sprintf('ORDER_STATUS_CHANGED',$order->order_status)."\r\n\r\n".$order_text;
$email->body = $body;

$this->modifyOrder($order,$this->payment_params->verified_status,$history,$email);
By
$this->modifyOrder($order, $this->payment_params->verified_status, $history, true);
It should fix your issue and send the email with the default content.

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.

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

  • Posts: 256
  • Thank you received: 21
9 years 3 weeks ago #219462

Thanks, but this doesn't stop payments failing when bootstrap is turned on.

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

  • Posts: 256
  • Thank you received: 21
9 years 3 weeks ago #219468

OK, I've narrowed this down to the fact that we have displayed radio buttons as radio buttons on the shipping and payment selections in the cart. Hikashop for some reason blocks radio buttons in the checkout but we have found that cart abandonment increases by over 20% when we use buttons instead of radio buttons). This worked fine in the non-responsive J2.5 version of the site but since upgrading and going responsive we have the problem.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 2 weeks ago #219515

Hi,

HikaShop does not "block" the radio buttons, it is just some design from Bootstrap 2.
Now if your website is not compatible with the Bootstrap 2 javascript ; it could explain some issues you have.
In that case, the best if you want to use some responsive design is to perform a view override to change the way that the checkout payment and the checkout shipping is displayed.

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.

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

  • Posts: 256
  • Thank you received: 21
9 years 1 week ago #220904

OK, backtracking now. It is not the radio button issue that is causing eway to fail. We get a successful payment about 1 time in 10, (which confused my testing) the other times the checkout page simply reloads with no error recorded. With bootstrap off, payments are 100% successful.

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

  • Posts: 256
  • Thank you received: 21
9 years 1 week ago #220909

I think we have resolved this.

It appears that if the payment method is in the last window of the checkout the setting "Auto submit shipping and payment methods selection" must be set to yes. If not you have to refresh the screen before it will submit. Not sure if this is a design feature I don't understand or a bug but setting to yes seems to have fixed the payment issues.

The following user(s) said Thank You: Jerome

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 1 week ago #221038

Hi,

Thanks for the feedback.
That kind of issue would be fixed thanks to HikaShop 3 and the new checkout system.

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.

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

Time to create page: 0.077 seconds
Powered by Kunena Forum