Cancel URL gets rewritten by payment gateway
14 years 3 weeks ago #65691
by jansuhr
Jan Suhr
www.colorconsult.se www.jansuhr.se
Cancel URL gets rewritten by payment gateway was created by jansuhr
I'm am working on a payment plugin for a Swedish payment service.
At the moment I'm getting rejected because of having wrong merchant_id but the return url gets rewritten by the payment gateway. This resulting in getting back to a webshop category page.
The Cancel URL in the code is the one you suggest and it is following along with the outgoing call.
It seem that the gateway starts to write its own stuff after the first ampersand. They seem to use ampersands as separators in the URL-code.
Is it possible to use a SEF url in the code?
Jan
At the moment I'm getting rejected because of having wrong merchant_id but the return url gets rewritten by the payment gateway. This resulting in getting back to a webshop category page.
The Cancel URL in the code is the one you suggest and it is following along with the outgoing call.
It seem that the gateway starts to write its own stuff after the first ampersand. They seem to use ampersands as separators in the URL-code.
Is it possible to use a SEF url in the code?
Jan
Jan Suhr
www.colorconsult.se www.jansuhr.se
Please Log in or Create an account to join the conversation.
14 years 2 weeks ago - 14 years 2 weeks ago #65864
by jansuhr
Jan Suhr
www.colorconsult.se www.jansuhr.se
Replied by jansuhr on topic Re: Cancel URL gets rewritten by payment gateway
I got it solved by chaging the code so that Ampersands are written urlencoded; %26.
Like this:
This gives me back the proper URL from the payment gateway.
JAn
Like this:
Code:
$return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop%26ctrl=checkout%26task=after_end%26order_id='.$order->order_id.$url_itemid;
This gives me back the proper URL from the payment gateway.
JAn
Jan Suhr
www.colorconsult.se www.jansuhr.se
Last edit: 14 years 2 weeks ago by jansuhr.
The following user(s) said Thank You: nicolas
Please Log in or Create an account to join the conversation.
Time to create page: 0.154 seconds