Barclaycard EPDQ payments
- jameswadsworth
-
Topic Author
- Offline
great job you are doing here. In the latest version I see that there is hsbc payment plugin. Do you plan to make/release a barclaycard EPDQ payment plugin any time soon?
Thanks, James
Please Log in or Create an account to join the conversation.
Thanks. We do payment plugins based on the requests of users (mostly when they are willing to share the development costs with us). We didn't had any request for that payment gateway so far. We can add it to the todo list but I don't see it coming any time soon unless someone is ready to pay for the development costs.
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
Thanks
Please Log in or Create an account to join the conversation.
I looked at the barclaycard EPDQ website but they don't provide any documentation if you don't register with them so I wouldn't be able to give a quote as we would first need to be able to analyze their documentation. I see that they have a CPI API. Is that the same as the HSBC CPI ?
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
it is similar to the HSBC api with it's own nuances. We will proceed with the development of gateway. Let me know how I get epdq documentation across to you so if we have any questions you can refer to relevant documentation.
Thanks
Please Log in or Create an account to join the conversation.
You can send me the documentation at nicolas@hikashop.com
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
Someone else already had the same problem and the solution was to create a php file to be called directly which would set the parameters in the $_GET,$_REQUEST and$_POST variables before including the index.php of joomla.
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
As we need to put create a password protected folder for the callback script and and the return file. In the previous version we had put these documents into the front end /components/com_shop folder. Do you have any suggestions where to put this? We were thinking in the /media/com_hikashop/ folder.
Thanks
Please Log in or Create an account to join the conversation.
Why do you need a password protected folder for the call back ? If you do so, does that mean that your payment gateway is able to call callback urls like that:
http://user:password@website.com/myfile.php ?
I've never seen that for a payment gateway. Usually, most of them use a hash mechanism in order to be sure that the data sent from your website is valid on their end and vice versa.
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
We will put everything in the hikashoppayment folder to alleviate the installation issues.
So far we are able to call the epdq server with the customer details and total to pay, and we now working on the call back script.
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
www.mysite.co.uk/index.php?option=com_hi...step&step=1&Itemid=1 throws bad referrer errors.
However if in the epdq_end.php we pass the information to the file:
www.mysite.co.uk/plugins/hikashoppayment/epdq_post.php
And then in this file we post the information to the epdq server everything is okay. However this file in no longer within the joomla framework, so besides being open for anyone to access, none of the joomla functions or variable are usable. Any ideas?
Please Log in or Create an account to join the conversation.
I don't see any other alternative than the one your proposed:
write the form as you would do normally but instead of posting it to epdq, you would send it to your epdq_post.php file which would just take all the variables in the POST, write them in a form and submit them to epdq automatically with a javascript redirect like there is already in epdq_end. That means that you will have two redirects: one from the last step of the checkout where your plugin is called and you use the epdq_end file to redirect to the epdq_post file which would do the second redirect to epdq.
You actually don't need to have the joomla framework loaded in the epdq_post file as it just takes all the variables from the POST and write them in a form end add two lines of JS to auto submit that when the page is displayed.
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
1. load the data of the order from the database
2. check the hash security
3. based on the status:
3.a send an error email to the admin and don't change the status.
3.b change the status of the order to confirmed and send a success email to the admin.
You should be able to copy/paste a lot from the other payment plugins in that part.
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Many thanks
Please Log in or Create an account to join the conversation.