Callback url for payment notification

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
1 year 6 months ago #351828

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.4.33

The url will change to the incorrect symbol and it keeps changing to task=notify¬if_payment that cause the url not working. Is there any way to solve the issue?

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 6 months ago #351829

Change the special character in the middle to

&not
and the URL will work

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

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
1 year 6 months ago #351883

The issue is now the callback url become different when my payment gateway side trigger the url, is there any other way/ have other url to have the callback?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
1 year 6 months ago #351884

You can create a PHP file in the root of your website. For example: callback.php
In it, you can have such code:

<?php
$_GET['option'] = 'com_hikashop';
$_GET['ctrl'] = 'checkout';
$_GET['task'] = 'notify';
$_GET['notif_payment'] = 'kiplebiz';
$_GET['callback'] = 'true';
$_GET['tmpl'] = 'component';
include_once(__DIR__.'/inde.php');
That way, you can provide the callback URL mywebsite.com/callback.php

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

Time to create page: 0.057 seconds
Powered by Kunena Forum