- Posts: 17
- Thank you received: 0
How to create another offline payment plugin
- Mirko Mikan
- Topic Author
- Offline
- New Member
-
Less
More
12 years 6 months ago - 12 years 6 months ago #20655
by Mirko Mikan
How to create another offline payment plugin was created 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.
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.
- Tuan Pham Ngoc
- Offline
- Administrator
-
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
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
-
Less
More
- Posts: 17
- Thank you received: 0
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...
Thank you agan, man...
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.