Skip to main content

Setting Return URL in eway payment method

More
14 years 3 weeks ago #68194 by webedge
Just wondering where I can edit the return URL upon successful payment for eway plugin?

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

More
14 years 3 weeks ago #68384 by nicolas
There is no option for that.

If you turn on/off the debug option of the plugin, it will switch automatically between the test gateway URL ( www.eway.com.au/gateway_cvn/xmltest/testpage.asp )and the live gateway URL ( www.eway.com.au/gateway_cvn/xmlpayment.asp ).

If you want another URL, You'll have to edit the file plugins/hikashoppayment/eway/eway.php and change these URLs directly in the code.

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

More
14 years 3 weeks ago - 14 years 3 weeks ago #68393 by webedge
Last edit: 14 years 3 weeks ago by webedge. Reason: fixed

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

More
14 years 2 weeks ago #69076 by webedge
Actually just further to this, I'm not sure we're on the same page.

When the eWay payment is successful the result is "thank you for your purchase" page - however the URL is something like /checkout/checkout/step/step-2 - which is the same url used during checkout.

I need to setup a conversion in Google Analytics so the thank you page/ success page needs to be its own unique URL, so Analytics can track it.

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

More
14 years 2 weeks ago #69191 by nicolas
You can add the code:
Code:
<tr> <td class="key"> <?php echo JText::_( 'RETURN_URL' ); ?> </td> <td> <input type="text" name="data[payment][payment_params][return_url]" value="<?php echo @$this->element->payment_params->return_url; ?>" /> </td> </tr>
at the end of the file plugins/hikashoppayment/eway_configuration.php and then configure a return url in the configuration of the eway plugin. That will then redirect your users to a thank you page of your choice after the payment.

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

More
14 years 2 weeks ago - 14 years 2 weeks ago #69231 by webedge
Yes I already went down that path using the code from the paypal plugin. Still doesn't work.

Is there a reason the other payment plugins have this feature built in but not the eWay plugin?
Last edit: 14 years 2 weeks ago by webedge.

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

More
14 years 2 weeks ago #69407 by nicolas
The reason is simple. No one asked for it.

Please install that package and it should work.

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

More
14 years 2 weeks ago #69418 by webedge
This has broken something:

When I click to edit the eway plugin I get the following error:

500 - An error has occurred.

JHtml: :hikaselect not supported. File not found.

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

More
14 years 1 week ago #69557 by nicolas
Ah yes, we already made some changes in the payment plugin for next release of HikaShop.

Open each file of that zip and change the text hikaselect to select and it will work.

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

More
14 years 2 days ago #71278 by webedge
Sorry still doesn't work. Upon successful credit card payment the redirect page is:

www.originalsaltlamps.com.au/checkout/checkout/step/step-2

In the return URL field I have entered: www.originalsaltlamps.com.au/thank-you-for-shopping

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

More
14 years 1 day ago #71535 by nicolas
OK, can you try to add the line:
$return_url = @$method->payment_params->return_url;
after the line:
$path = JPATH_THEMES.DS.$app->getTemplate().DS.'hikashoppayment'.DS.$name;
in the plugins/hikashoppayment/eway/eway.php file and try again ?

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

Time to create page: 0.365 seconds
Powered by Kunena Forum