unable to change payment method end point

  • Posts: 19
  • Thank you received: 0
10 years 10 months ago #138152

-- HikaShop version -- :HikaShop Starter: 2.2.3
-- Joomla version -- : 3.2
-- PHP version -- : 5.4
-- Browser(s) name and version -- : any

Hi,thank you for this extention, im used to virtuemart but since its not yet supported on joomla 3 i decided to test your component.
Im trying to develop need a custom payment method since my gateway is not on the plugin list.(tranzila credit card gateway)
i tried using ogone payment plugin as a base to work on and by changing the POST gateway url located in ogone_end.php.
problem is, no matter what i do it it keeps showing up as the original url " secure.ogone.com/ncol/prod/orderstandard_utf8.asp " when clicking the "finish" button on the checkout page.
i tried clearing the browser cache, clearing joomla cache, using a different browser, but nothing helps....
is there some restriction on editing payment plugins ? if not, what could be the reason ?
thanks

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 10 months ago #138153

Hi,

There is no such restriction. It's probably the way that you changed the URL which is not correct.

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

  • Posts: 19
  • Thank you received: 0
10 years 10 months ago #138173

Hi, thank you for answering.
i changed line 82 in administrator/components/com_hikashop/extentions/pluginhikashoppayment_ogone/ogone.php
from:

$this->payment_params->url='https://secure.ogone.com/ncol/prod/orderstandard_utf8.asp';

to:
$this->payment_params->url='https://direct.tranzila.com/myaccount';

but it still goes to secure.ogone.com when redirecting.
i tried to comment the automatic submit function but it had no effect. as if the code creating form is coming from somewhere else.
even hardcoding
administrator/components/com_hikashop/extentions/pluginhikashoppayment_ogone/ogone_end.php at line 18:
from:
<form id="hikashop_ogone_form" name="hikashop_ogone_form" action="<?php echo $this->payment_params->url;?>" method="post">
to:
<form id="hikashop_ogone_form" name="hikashop_ogone_form" action="https://direct.tranzila.com/myaccount" method="post">

had no effect.
im using a yougrids template that is bootstrap based, could there be some other caching mechanism ? everything other code change is showing an effect, language files etc. only this element remains the same.
any ideas ?
appreciate it and Happy new year !

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

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

Hi,

Does your plugin configured in "test" environment ?
Because you modified the url for the production environment, so if you are in the test environment, you have to modified also the other line which set the payment url (two lines above).

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: 19
  • Thank you received: 0
10 years 10 months ago #138177

Hi, Jerome. yes, i tried both lines.

if($this->payment_params->environnement=='test'){
			$this->payment_params->url='https://direct.tranzila.com/myaccount';
		}else{
			$this->payment_params->url='https://direct.tranzila.com/myaccount';
		}

also, i tried switching to a different joomla frontend template to make sure there its not caching -same result.

Last edit: 10 years 10 months ago by buzibuzi.

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

  • Posts: 19
  • Thank you received: 0
10 years 10 months ago #138182

got it !
hikashop copies the plugin files to
joomla_root/plugins/hikashoppayment/{ogone}/*.*
that's where the change needs to be made.
hope it helps if anyone encounters this problem.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum