Copy offline payment plugin not working

  • Winfred Valois
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 5 months ago #72760 by Winfred Valois
Copy offline payment plugin not working was created by Winfred Valois
Hello,

I made a copy (copied files and renamed os_offline) of the offline payment plugin because I need two offline payment plugins but with different purposes.
- One is for a bank transfer in advance, registrant will get e-mail with bank account number (= os_offline)
- Other one is for pay with cash at the beginning of the event (= os_cash)

The problem is when a registrant chooses cash payment, the number of available places is not reduced by one.
EB does not recognize os_cash as an offline payment, but as an online payment.
Where can I change that? Of add code so EB knows os_cash is also an offline payment.
Please let me know.

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

More
9 years 5 months ago #72832 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Copy offline payment plugin not working
Hi

The name of the payment plugin needs to be started with os_offline_. For example, in you case, change it to os_offline_cash should work

Tuan
The following user(s) said Thank You: Winfred Valois

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

  • Winfred Valois
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 5 months ago #72860 by Winfred Valois
Replied by Winfred Valois on topic Copy offline payment plugin not working
That's why the code has 'os_offline%' in it :)
I changed it and now it works, thanks a lot.

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

More
9 years 5 months ago #72910 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Copy offline payment plugin not working
Yes correct. Glad to hear that it works well now :)

Tuan

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

Moderators: Tuan Pham Ngoc