How to create another offline payment plugin

  • Mirko Mikan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 6 months ago - 12 years 6 months ago #20655 by Mirko Mikan
Tuan, please help me just this one time.

I need to correctly create another offline payment plugin (actualy two).
I tried unsuccessfully by creating copy of os_offline.php and os_offline.xml, and renaming them to os_cheque.php and os_cheque.xml, and then just renaming class in os_cheque.php
from

class os_offline extends os_payment {
function os_offline($params) {
parent::setName('OS_OFFLINE ');
...
to

class os_cheque extends os_payment {
function os_cheque($params) {
parent::setName('OS_CHEQUE');
...

and changing reference to file in os_cheque.xml
from
<filename>os_offline.php</filename>
to
<filename>os_cheque.php</filename>

But, when I install this new plugin and publish it, and unpublish PayPal, Registration Form goes crazy, expanding to whole screen and losing CSS and all buttons.
If I keep PayPal published, Registration form looks OK, but when I use new payment palugin as payment method, it goes blank upon pressing Submitt button.

What is correct way to do it?

I just need three ofline payment methods and no online.

Please help.
Last edit: 12 years 6 months ago by Mirko Mikan.

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

More
12 years 6 months ago - 12 years 6 months ago #20656 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: How to create another offline payment plugin
Hi Mirko

You can see it here www.joomdonation.com/62-general-discussi...ange-logs.html#14476 . As you can see, I added two sample offline payment plugins. I think you can simply use them !

Tuan
Last edit: 12 years 6 months ago by Tuan Pham Ngoc.

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

  • Mirko Mikan
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 6 months ago #20659 by Mirko Mikan
Replied by Mirko Mikan on topic Re: How to create another offline payment plugin
Woooow, silly me... I've stumbled upon that post before, but forgot completelly about it... :S

Thank you agan, man...

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

Moderators: Tuan Pham Ngoc