Setting Return URL in eway payment method

  • Posts: 35
  • Thank you received: 0
11 years 7 months ago #68194

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.

  • Posts: 81702
  • Thank you received: 13103
  • MODERATOR
11 years 7 months ago #68384

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.

  • Posts: 35
  • Thank you received: 0
11 years 7 months ago #68393

fixed

Last edit: 11 years 7 months ago by webedge. Reason: fixed

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

  • Posts: 35
  • Thank you received: 0
11 years 7 months ago #69076

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.

  • Posts: 81702
  • Thank you received: 13103
  • MODERATOR
11 years 7 months ago #69191

You can add the 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.

  • Posts: 35
  • Thank you received: 0
11 years 7 months ago #69231

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: 11 years 7 months ago by webedge.

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

  • Posts: 81702
  • Thank you received: 13103
  • MODERATOR
11 years 7 months ago #69407

The reason is simple. No one asked for it.

Please install that package and it should work.

Attachments:

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

  • Posts: 35
  • Thank you received: 0
11 years 7 months ago #69418

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.

  • Posts: 81702
  • Thank you received: 13103
  • MODERATOR
11 years 7 months ago #69557

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.

  • Posts: 35
  • Thank you received: 0
11 years 6 months ago #71278

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.

  • Posts: 81702
  • Thank you received: 13103
  • MODERATOR
11 years 6 months ago #71535

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.074 seconds
Powered by Kunena Forum