Cancel URL gets rewritten by payment gateway

  • Posts: 182
  • Thank you received: 15
12 years 2 months ago #65691

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

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

  • Posts: 182
  • Thank you received: 15
12 years 2 months ago #65864

I got it solved by chaging the code so that Ampersands are written urlencoded; %26.

Like this:

$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

Last edit: 12 years 2 months 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.054 seconds
Powered by Kunena Forum