Skip to main content

New payment plugin

More
15 years 1 month ago - 15 years 1 month ago #22732 by maxgag51
New payment plugin was created by maxgag51
Hi all

If I will to develop a new payment plugin (Italian KeyClient), by one existent, doesn't is sufficient copy modifiying the names (and xml contents) from folder administrator/component/com_hikashop/extensions/plg_ ... and plugins\hikashoppayment\newplugin.. ? I tried but the plugin remains invisible; what's miss?
Thank you
Last edit: 15 years 1 month ago by maxgag51. Reason: error in text

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

More
15 years 1 month ago #22733 by nicolas
Replied by nicolas on topic Re: New payment plugin
Hi,

The plugin need to be published in the joomla plugin manager. If you don't see it, it means that there is no entry for it in the jos_plugins table. That entry is normally added automatically by joomla when you install a plugin via the joomla installer.

Also, changing the names is a start but the implementation of the integration with the payment gateway is unique to each gateway. That means that you will also have to change the code to make it work with the specificities of the payment gateway.

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

More
15 years 1 month ago #22737 by maxgag51
Replied by maxgag51 on topic Re: New payment plugin
1. OK
2. Of course. I have all characteristics for the new payment plugin. I have attached. Could you give a look to see if, in your opinion, there are difficulties to develop?
Thanks in advance.

This attachment is hidden for guests.
Please log in or register to see it.

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

More
15 years 1 month ago #22738 by nicolas
Replied by nicolas on topic Re: New payment plugin
That sounds like a standard payment gateway so there is no problems in implementing it for HikaShop.

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

More
15 years 1 month ago #22896 by maxgag51
Replied by maxgag51 on topic Re: New payment plugin
Hi, Nicolas
I developed new credit card plugin payment (KeyClient).
I copied from epay (similar) modifying name in keyclient; after I modified the configuration (keyclient.xml) and all php (keyclient.php, keyclient_configuration.php, keyclient_end.php) as in administrator/components/com_hikashop/extensions than in plugins/hikashoppayment.
Well, when it must open KeyClient_window (in standardwindow.js that I copied and wrote in my directories) this happens ('SI' is a my alert: first instruction of keyclient_end.php, before opening KeyClient_window) and pay_now button doesn't work and the page is in loop

Suggestions?
Thanks in advance
Massimo

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

More
15 years 1 month ago #22897 by nicolas
Replied by nicolas on topic Re: New payment plugin
In the txt file your provided there was no mention of a javascript file.
Looking at the txt, you should be able to just redirect to the keyclient payment gateway at the end of the checkout with a normal HTML form a two lines of javascript submitting your form.

Could you give a link to your shop so that we can try and see what could be the problem ?

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

More
15 years 1 month ago - 15 years 1 month ago #22901 by maxgag51
Replied by maxgag51 on topic Re: New payment plugin
Meanwhile that I publish those are components of plugin:

This attachment is hidden for guests.
Please log in or register to see it.

(administrator side in: administrator\components\com_hikashop\extensions)

This attachment is hidden for guests.
Please log in or register to see it.

(front-office side in: plugins\hikashoppayment)

This attachment is hidden for guests.
Please log in or register to see it.

(standardwindow.js in templates\gt2)
Last edit: 15 years 1 month ago by maxgag51. Reason: attach miss

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

More
15 years 1 month ago #22903 by nicolas
Replied by nicolas on topic Re: New payment plugin
You only need the payment plugin files in plugins\hikashoppayment

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

More
15 years 1 month ago #22906 by maxgag51
Replied by maxgag51 on topic Re: New payment plugin
www.inabox.it/gt
your backoffice credential:

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

More
15 years 1 month ago #22907 by nicolas
Replied by nicolas on topic Re: New payment plugin
You have several problems:

First in your js file you have the line:
objForm.action = pageTracker._getLinkerUrl('<?php echo $vars["bankurl"].'?'.$vars["strECommerce"]?>');
and the line:
objPoll.src = '<?php echo $vars["bankurl"].'?'.$vars["strECommerce"]?>';

You're trying you have php executed in a js file. That's not possible.

Then, your form action URL is:
ecommerce.cim-italia.it/ecomm/Dispatcher...ZTQyMGE5ODk1ZmI%253D

As you can see you have several urls in there. That's not possible. You should urlencode all the parameters of that URL.
www.php.net/manual/en/function.urlencode.php

I see that you call open_KeyClient_window() when you click on the pay now button. Why not just submit the form like all the other payment plugins ?

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

More
15 years 1 month ago #23942 by maxgag51
Replied by maxgag51 on topic Re: New payment plugin
Hi Nicolas,
I have completed and tested plg_hikashoppayment_keyclient:
keyclient.php,
keyclient.xml,
keyclient_configuration.php,
keyclient_end.php;
and some add to plugin language:
en-GB.com_hikashop.ini (in language\en-GB) e en-GB.override.ini (in language\overrides)
BANK_URL="Bank url"
MERCHANT_NUMBER="Merchant number"
SECRETKEY="Secret key"
URL_BACK="Url back"

it-IT.com_hikashop.ini (in language\it-IT) e it-IT.override.ini (in language\overrides)
BANK_URL="Url della banca"
MERCHANT_NUMBER="Codice Negozio"
SECRETKEY="Chiave segreta"
URL_BACK="Url di rientro"
but I don't know how make a standard hikashop plugin payment for sharing.
Could you help me please ?
Thanks in advance.

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

More
15 years 1 month ago #23946 by nicolas
Replied by nicolas on topic Re: New payment plugin
Hi,

You can make a zip of the files and it should be installable via the joomla installer.
For the language strings, you should use already existing translation keys. HikaShop should already have all the translation keys you want in its default translation file.

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

More
12 years 6 months ago #146276 by fafabone
Replied by fafabone on topic Re: New payment plugin
Hi, please, can you share your plugin, if it is properly functioning?
Can I install it via Joomla installation manager?
Thank you

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

More
12 years 6 months ago #146288 by Xavier
Replied by Xavier on topic Re: New payment plugin
Hi,

We don't have this plugin, so you will have to wait for maxgag51.
This plugin should be installable with the joomla extension manager.

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

More
12 years 6 months ago #146307 by fafabone
Replied by fafabone on topic Re: New payment plugin
only for virtuemart, now

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

More
12 years 6 months ago #146334 by maxgag51
Replied by maxgag51 on topic Re: New payment plugin
I attached the keyclient plugin
Thanks
The following user(s) said Thank You: nicolas, Jerome, AmoD, fafabone

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

More
12 years 5 months ago #150915 by nico1979
Replied by nico1979 on topic New payment plugin
Hi, I'm looking for an Italian credit card payment plugin. This plugin seems helpful but I haven't understand how to register my bank count. Can you link me the bank to create my bank account?
Thank You

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

More
12 years 1 month ago #166814 by lovind
Replied by lovind on topic New payment plugin
I hope I can help you to find a payment gateway for joomla hikashop 3.3.0 and 3 for payment by credit card Cartasi Italian system with x-pay. Do you have any solution? thanks in advance for the help!

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

More
12 years 1 month ago #166825 by nicolas

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

Time to create page: 0.243 seconds
Powered by Kunena Forum