Create a new payment plug-in

  • Posts: 8
  • Thank you received: 0
11 years 3 months ago #116730

[HikaShop version] : 2.2.0
[Joomla version] : 2.5.13
[PHP version] : 5.3.10-1ubuntu3.7
[Browser(s) name and version] : Opera 15

Hello!
Create a new payment plug-in administration panel displays all the registered panel activates this plug-in. But in the basket does not have this payment method writes "not selected more than one method of payment." In what could be the problem and how to solve it.
Many thanks in advance.


If you feel it necessary to judge me by my past, do not be surprised if I deem it necessary to leave you there.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #116742

Hi,

I didn't exactly understood what your problem really was so can you explain it with more details, and with some screenshots for example ?
If your payment method doesn't show you should probably follow the payment FAQ .

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

  • Posts: 8
  • Thank you received: 0
11 years 3 months ago #116746

Mohamed Thelji wrote: Hi,

I didn't exactly understood what your problem really was so can you explain it with more details, and with some screenshots for example ?
If your payment method doesn't show you should probably follow the payment FAQ .


1) created a folder /plugins/ hikashoppayment /onpay_ru /
2) built there files index.html, onpay_ru.php, onpay_ru.xml, onpay_ru_configuration.php, onpay_ru_end.php.
3) installed the plugin through the Extension Manager: Distsover,
4) in the hikashop Payment methods eating this method and I published it
But the site did not show the same module.


If you feel it necessary to judge me by my past, do not be surprised if I deem it necessary to leave you there.
Attachments:
Last edit: 11 years 3 months ago by papagot.

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

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #116767

Ok, if you have done your own plugin, the problem is probably coming from the way :
- You have set the code of this payment method
- You configured this payment method
So you should probably check these two points.

Last edit: 11 years 3 months ago by Mohamed Thelji.

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

  • Posts: 8
  • Thank you received: 0
11 years 3 months ago #116777

Mohamed Thelji wrote: Ok, if you have done your own plugin, the problem is probably coming from the way :
- You have set the code of this payment method
- You configured this payment method
So you should probably check these two points.


And where you need to specify this code? attached XML file.


If you feel it necessary to judge me by my past, do not be surprised if I deem it necessary to leave you there.
Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
11 years 3 months ago #116786

I don't think that the issue comes from the xml of the plugin. At least it looks fine to me.

On www.hikashop.com/media/kunena/attachments/25919/hffd3975.jpg I see that the plugin is listed in the list of the payment plugins installed. Did you also create a new payment method instance of the plugin via the menu System>Payment methods ?
If so, could you do a screenshot of the options of the payment method (you can hide the sensitive data) ?

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

  • Posts: 8
  • Thank you received: 0
11 years 3 months ago #116800

nicolas wrote: I don't think that the issue comes from the xml of the plugin. At least it looks fine to me.

On www.hikashop.com/media/kunena/attachments/25919/hffd3975.jpg I see that the plugin is listed in the list of the payment plugins installed. Did you also create a new payment method instance of the plugin via the menu System>Payment methods ?
If so, could you do a screenshot of the options of the payment method (you can hide the sensitive data) ?


When I open the page /administrator/index.php?option=com_hikashop&ctrl=plugins&plugin_type=paymen at me there no konpki a payment .... this page is the path that you specified.
Maybe that is where you add a new user of your payment into the system?


If you feel it necessary to judge me by my past, do not be surprised if I deem it necessary to leave you there.
Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
11 years 3 months ago #117024

Great, all that looks fine.
Then it might be an issue of the code in the onpay_ru.php file.
Would it be possible to see it so that we can check what code was written ?

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

  • Posts: 8
  • Thank you received: 0
11 years 3 months ago #117089

nicolas wrote: Great, all that looks fine.
Then it might be an issue of the code in the onpay_ru.php file.
Would it be possible to see it so that we can check what code was written ?

Good night.
Rechecked written billing code in the file everything seems in order. I attach the file itself. If you do not complicate Check the please.


If you feel it necessary to judge me by my past, do not be surprised if I deem it necessary to leave you there.
Attachments:

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
11 years 3 months ago #117300

Hi,

I see that you're creating a payment method for the Russian market. So I suppose that you're products are sold in rubles which has the currency code RUB.
I however don't see that currency in the list of accepted currencies of your plugin:
var $accepted_currencies = array(
'EUR','USD','GBP','HKD','SGD','JPY','CAD','AUD','CHF','DKK',
'SEK','NOK','ILS','MYR','NZD','TRY','AED','MAD','QAR','SAR',
'TWD','THB','CZK','HUF','SKK','EEK','BGN','PLN','ISK','INR',
'LVL','KRW','ZAR','RON','HRK','LTL','JOD','OMR','RSD','TND',
);

It's normal that the plugin doesn't display when the current currency isn't in the list of the accepted currencies and I think that it could be your issue.

Other than that, I didn't see anything which could cause the problem in the code of the plugin.

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

  • Posts: 8
  • Thank you received: 0
11 years 3 months ago #117326

nicolas wrote: Hi,

I see that you're creating a payment method for the Russian market. So I suppose that you're products are sold in rubles which has the currency code RUB.
I however don't see that currency in the list of accepted currencies of your plugin:
var $accepted_currencies = array(
'EUR','USD','GBP','HKD','SGD','JPY','CAD','AUD','CHF','DKK',
'SEK','NOK','ILS','MYR','NZD','TRY','AED','MAD','QAR','SAR',
'TWD','THB','CZK','HUF','SKK','EEK','BGN','PLN','ISK','INR',
'LVL','KRW','ZAR','RON','HRK','LTL','JOD','OMR','RSD','TND',
);

It's normal that the plugin doesn't display when the current currency isn't in the list of the accepted currencies and I think that it could be your issue.

Other than that, I didn't see anything which could cause the problem in the code of the plugin.



Hello,
My currency sold product is EUR, and accepted currency is EUR is existing. I change currency is USD and form dont show.


If you feel it necessary to judge me by my past, do not be surprised if I deem it necessary to leave you there.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
11 years 3 months ago #117394

Hi,

Ok can you do a zip of all the files of your plugin so that we can try it on our end ?

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

  • Posts: 8
  • Thank you received: 0
11 years 3 months ago #117458

this is all files from my plugins onpay_ru.


If you feel it necessary to judge me by my past, do not be surprised if I deem it necessary to leave you there.
Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #117558

Hi,

I think that the problem was coming from you xml file, can you install this version and test it again ?

Attachments:

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

  • Posts: 8
  • Thank you received: 0
11 years 3 months ago #117563

Hi,
I Install new joomla clone and hikashop plugins installed successful enable this plugin a pay method but front end dont pay method and write "No payment methods found"! Thanks for help.


If you feel it necessary to judge me by my past, do not be surprised if I deem it necessary to leave you there.

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
11 years 3 months ago #117574

Hi,

We tested the plugin on our end and we were able to configure it and see it on the checkout. So it's not a problem with the code of the plugin but with the way you configured it or the way you configured HikaShop.
For example, if you changed the euro currency's code, such issue could happen.
We actually have a full list of possibilities here:
www.hikashop.com/support/faq.html#paym

What is sure is that the problem in not in your code.

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

Time to create page: 0.097 seconds
Powered by Kunena Forum