Order not confirmed after successful eWay Rapid payment

  • Posts: 92
  • Thank you received: 5
  • Hikashop Business
6 years 10 months ago #272204

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 5.6.30
-- Browser(s) name and version -- : Firefox

I am testing the eWay Rapid payment method in a staging environment.

The payment is successful in the eWay sandbox environment but my order is not confirmed.

I have checked the suggestions on this page:

www.hikashop.com/support/documentation/3...ent-paypal-form.html

From my debug trace I can see that there is no complete Checkout URL:

[attributes:protected] => Array
(
[TotalAmount] => 15000
[InvoiceNumber] =>
[InvoiceDescription] =>
[InvoiceReference] => C1L2J96
[CurrencyCode] => AUD
)

)

[FormActionURL] => secure-au.sandbox.ewaypayments.com/Acces...rSH9QbKvt4WLJnIEDw==
[CompleteCheckoutURL] =>
[Errors] =>
)

)

The site is available to Public so that should not be an issue.

On completion of the eWay process I am returned to the live site 404 page rather than to the staging.livesite.com page.

Configuration is attached.

Any suggestions on how to proceed greatly appreciated.

Thanks and regards
Brett

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
6 years 10 months ago #272225

Hi,

It looks like you didn't provide the full trace that you get in the payment log file.
Could you provide there ?
There should be more to it that what you provided.

Normally, you should have a text "eWay notification:" in there.
If not, that means that the payment notification from the payment gateway didn't reach HikaShop.
So you would have to check the access log of Apache for the payment notification URL of ewayrapid (as explained in www.hikashop.com/support/documentation/i...or.html#notification ).
Also, the payment notification uses a file ewayrapid_XX.php that it places at the root of your website when you save its settings.
Please check that this file was created. Otherwise, the notification won't be received by HikaShop. Note that XX is the id of the payment method.


Also, we didn't get the screenshot of your payment method settings.

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

  • Posts: 92
  • Thank you received: 5
  • Hikashop Business
6 years 10 months ago #272259

Thanks for your help Nicolas

Here is the contents of the ewayrapid_4.php file from the root.

<?php
$_GET['option']='com_hikashop';
$_REQUEST['option']='com_hikashop';
$_GET['tmpl']='component';
$_REQUEST['tmpl']='component';
$_GET['ctrl']='checkout';
$_REQUEST['ctrl']='checkout';
$_GET['task']='notify';
$_REQUEST['task']='notify';
$_GET['notif_payment']='ewayrapid';
$_REQUEST['notif_payment']='ewayrapid';
$_GET['format']='html';
$_REQUEST['format']='html';
$_GET['local']='en';
$_REQUEST['local']='en';
$_GET['notif_id']='4';
$_REQUEST['notif_id']='4';
include('index.php');
Trace file attached also.

Attachments:
Last edit: 6 years 10 months ago by Jerome. Reason: [code] is nice

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

  • Posts: 81504
  • Thank you received: 13064
  • MODERATOR
6 years 9 months ago #272312

Hi,

So the ewayrapid_4.php file is good, and the payment log file indicates that HikaShop didn't receive a payment notification from the eway server.
So the next step is to look at the Apache access log for the notification URL.
In your case, you should look for URLs like that: staging3.midwestmeats.com.au/ewayrapid_4...r_id=1296&Itemid=309
where 1296 is the id of the order.
eway is supposed to call that URL to notify HikaShop of the payment but HikaShop doesn't receive the notification, so it's likely that the request is being blocked by something on your website.
Normally, in that case, the apache access log should contain more information on what hapenned with that URL.
You can also potentially ask eway support if they have logs of the payment notifications and provide them with the URL staging3.midwestmeats.com.au/ewayrapid_4...r_id=1296&Itemid=309 and the access code so that they can have a look.

The following user(s) said Thank You: bmm01

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

  • Posts: 92
  • Thank you received: 5
  • Hikashop Business
6 years 8 months ago #275393

The issue was an Apache configuration issue.

We had to update the configuration.php variable $live_site to point to the staging environment.

The following user(s) said Thank You: Jerome

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

Time to create page: 0.066 seconds
Powered by Kunena Forum