After Payment Return URL
- olstadesigns
-
Topic Author
- Offline
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.0
-- Browser(s) name and version -- : Google Chrome
How do I redirrect the customer back to the cart to finalise the order. I have a Afterpay plugin but it redirects back to the available carts and doesn't confirm the order?
Please HELP
I can't change the direction of the wind, but I can adjust my sails to always reach my destination.
Please Log in or Create an account to join the conversation.
I don't know how your payment plugin was made as it wasn't developed by us. In fact we didn't even know it existed as we don't list it on our documentation. Where did you get it ?
Anyways, normally, in payment plugins, there is a "return URL" parameter where you can configure where you want the customers to be redirected to after the payment. If it's not in the plugin you're using, it would require modifying the plugin.
Please Log in or Create an account to join the conversation.
- olstadesigns
-
Topic Author
- Offline
I can't change the direction of the wind, but I can adjust my sails to always reach my destination.
Please Log in or Create an account to join the conversation.
We can have a look, but normally that's the responsability of the developer who developed the plugin if the plugin doesn't work properly. Did you try reaching him ? He would better be able to help. We don't even have the integration documentation of afterpay so it's going to be difficult to help you.
Please Log in or Create an account to join the conversation.
- olstadesigns
-
Topic Author
- Offline
Afterpay API: docs.afterpay.com.au/merchant-api-v1.html
Please log in or register to see it.
Please log in or register to see it.
I can't change the direction of the wind, but I can adjust my sails to always reach my destination.
Please Log in or Create an account to join the conversation.
From what I can see the plugin is only developed half way through.
Your developer only implemented the redirection from your website to the payment gateway, but didn't handle the return from the payment gateway to your website.
So that's why the orders are not being confirmed.
Reading the documentation there, the redirectConfirmUrl parameter should contain the notification URL of the payment plugin, not the return URL of HikaShop, and then the onPaymentNotification function should be completely rewritten to send a cURL request to the payment gateway to make sure that the payment is valid and then change the status of the order and finally redirect the customer to the return URL.
Unfortunately, that's not something we can help with as part of this forum support. That requires proper development and testing and can't be done with just one or two copy/paste of a few lines of code.
You'll have to find a developer to finish the job. The instructions I gave above plus the code you already have and the documentation link of AfterPay should be enough to do that for almost any PHP developer.
Please Log in or Create an account to join the conversation.
- olstadesigns
-
Topic Author
- Offline
Not blaming Hikashop but I have to get something up and running and I am losing money in my businesses. At least I know now I was ripped off by my developer and there is not much I can do about that.
I can't change the direction of the wind, but I can adjust my sails to always reach my destination.
Please Log in or Create an account to join the conversation.
HikaShop already contains more than 60 free payment plugin ; and more than 100 available payment plugin with the third party developers.
Since some time, the development team is focus on the core feature and not on the creation of new plugins.
We are sorry for the issues with your developer and what I was able to see, that developer is specialized with Virtuemart.
But we do have a list of HikaShop partners, people who are really working with HikaShop, who participate in the forum, etc.
www.hikashop.com/home/our-partners.html
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
- olstadesigns
-
Topic Author
- Offline
navlife.com.au/index.php?option=com_hika...740m9o9k1sbcueiv91nl
And it returns and error:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND user_cms_id != 0' at line 1
I can't change the direction of the wind, but I can adjust my sails to always reach my destination.
Please Log in or Create an account to join the conversation.
Looking at the code, it seems that it might be linking to a mass action that is configured to change user groups.
Try changing the line:
That should fix that error. Otherwise, try deactivating the mass actions you have and see if that helps.
Please Log in or Create an account to join the conversation.
- olstadesigns
-
Topic Author
- Offline
I can't change the direction of the wind, but I can adjust my sails to always reach my destination.
Please Log in or Create an account to join the conversation.
I have seen plenty of people looking for a working afterpay plugin, myself included!
Please Log in or Create an account to join the conversation.
- olstadesigns
-
Topic Author
- Offline
I will get back to you with a reply in the coming days
I can't change the direction of the wind, but I can adjust my sails to always reach my destination.
Please Log in or Create an account to join the conversation.
We'll also be happy to add links to them from our side so that people can easily find them. So don't hesitate providing the links so that we can add them, whatever you choose to do with them (sell, provide for free, etc).
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.