What is the Callback URL for a custom payment method

  • Posts: 47
  • Thank you received: 0
7 years 7 months ago #267372

-- url of the page with the problem -- : getmall.getthiss.com
-- HikaShop version -- : 3.0.1

Hello,

We need to develop our own payment method. We are doing so using the sample payment plugin.

You see what we have done at our test site getmall.getthiss.com .

Our problem is that we do not know where is the return URL to make callbacks to.

Do you know where that is?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
7 years 7 months ago #267376

Hi,

You must have missed this code in the example plugin:

// This is the "notification" URL of HikaShop that should be given to the payment gateway so that it can send a request to that URL in order to tell HikaShop that the payment has been done (sometimes the payment gateway doesn't do that and passes the information to the return URL, in which case you need to use that notification URL as return URL and redirect the user to the HikaShop return URL at the end of the onPaymentNotification function)
		$this->pluginConfig['notify_url'][2] = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment='.$this->name.'&tmpl=component';
So this URL is what you want to give to the payment gateway as a notificiation URL for callbacks:
HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment='.$this->name.'&tmpl=component'

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

  • Posts: 47
  • Thank you received: 0
7 years 7 months ago #267411

In that case I am already using it ie -

getmall.getthiss.com/index.php?option=co...yment&tmpl=component

But in response it sends me back to the product listing page and
1. There is no confirmation page shown
2. The delivery status is not updated to confirmed or cancelled

You can view the process by buying products here - getmall.getthiss.com

Here are the parameters that I am sending back to the above url using a GET request


IDENTIFIER IDENTI-FIER
CLIENTIDENT 1
DESCRIPTION order number : F1W34
ORDERID 134
VERSION 2
AMOUNT 731.2
RESELLERID Abc123
HASH b62584ad29f872b6ede9f04145c9266a68a19d06c567ce0b05e9b6751b95eb7b
EXECCODE 0000


What is wrong?

Thanks

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

  • Posts: 47
  • Thank you received: 0
7 years 7 months ago #267412

One funny thing, the callback url has this part



and it keeps changing to this no matter what I do or retype it

task=notify¬if_payment

Attachments:
Last edit: 7 years 7 months ago by brendanlanza. Reason: Please see attachment

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 7 months ago #267439

Hello,

The URL will call your plugin notification function ; but for sure you'll need to have some details in order to get the order information.
Now if the payment platform does not handle long URL or URL with parameters ; you have to create a file in the root of your Joomla website. Some payment plugin already do that, like "paybox" for example.

About the special character, that's normal and it's due to the HTML encoding and a little "bug" in browsers

&notif; => ¬

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.
The following user(s) said Thank You: brendanlanza

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

  • Posts: 47
  • Thank you received: 0
7 years 7 months ago #267454

Thanks Jerome, the GET parameters was no problem. I removed the hash checking function and it is now working wonderfully. We didn't have to resort to creating intermediate files etc.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 7 months ago #267464

Hello,

Okay.
It's never easy to know what the payment platform can support or not.

If you have issues with the hash checking, you should filter the parameters and try to see if they are sorted during the hash.
Because your URL already have GET parameters,, the platform might not use them during the hash in his side.

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.

Time to create page: 0.072 seconds
Powered by Kunena Forum