- Posts: 47
- Thank you received: 0
What is the Callback URL for a custom payment method
- brendanlanza
-
Topic Author
- Offline
Less
More
9 years 5 months ago #267372
by brendanlanza
What is the Callback URL for a custom payment method was created by brendanlanza
-- 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?
-- 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.
9 years 5 months ago #267376
by nicolas
Replied by nicolas on topic What is the Callback URL for a custom payment method
Hi,
You must have missed this code in the example plugin:
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'
You must have missed this code in the example plugin:
Code:
// 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';
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.
- brendanlanza
-
Topic Author
- Offline
Less
More
- Posts: 47
- Thank you received: 0
9 years 5 months ago #267411
by brendanlanza
Replied by brendanlanza on topic What is the Callback URL for a custom payment method
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
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.
- brendanlanza
-
Topic Author
- Offline
Less
More
- Posts: 47
- Thank you received: 0
9 years 5 months ago - 9 years 5 months ago #267412
by brendanlanza
Replied by brendanlanza on topic What is the Callback URL for a custom payment method
Last edit: 9 years 5 months ago by brendanlanza. Reason: Please see attachment
Please Log in or Create an account to join the conversation.
9 years 5 months ago #267439
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic What is the Callback URL for a custom payment method
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
Regards,
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
Code:
¬if; => ¬
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: brendanlanza
Please Log in or Create an account to join the conversation.
- brendanlanza
-
Topic Author
- Offline
Less
More
- Posts: 47
- Thank you received: 0
9 years 5 months ago #267454
by brendanlanza
Replied by brendanlanza on topic What is the Callback URL for a custom payment method
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.
9 years 5 months ago #267464
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic What is the Callback URL for a custom payment method
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,
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.
Please Log in or Create an account to join the conversation.
Time to create page: 0.235 seconds