Page 1 of 2

Payments

Posted: 15 Sep 2014, 16:08
by chco
Quick question before I dive into the code..
Does MP keep records of all received and send planets ?

Re: Payments

Posted: 16 Sep 2014, 16:06
by chco
For anyone interested in this subject. Dived into the code and it seems there's no history kept.

Re: Payments

Posted: 16 Sep 2014, 16:08
by steeffeen
nope there's no payments history

Re: Payments

Posted: 01 Oct 2014, 17:15
by chco
ok Next plugin : bookkeeping ;)

Re: Payments

Posted: 18 Dec 2014, 20:28
by chco
When I look at the MC code.. it seems there's no way to intercept ALL payments and bills, is that correct ?
The only way to collect ALL payments and bills is to edit the BillManager.php. Is that correct ?

Re: Payments

Posted: 22 Dec 2014, 18:33
by chco
So apparently the billmanager.php needs to create a new callback that a plugin can pick up and handle upon.
Since I don't have that much time to figure out how this is done within MC I've edited Billmanager.php to create a .csv document with all the payments and bills.
If anyone is interested, just drop me a note..

Cheers,
Charly

Re: Payments

Posted: 26 Dec 2014, 09:53
by chco
Hi Kremsy!

Well.. yes :) I did use the Billmanager so I could get to all the information of a transaction. But if a callback would provide all the information (billnr, amount, receiver/donator, message (with message I mean the variable "message" that is used with payments) then I would very much prefer that.

Merry christmas Kremsy!
kremsy wrote:
We could implement a new Callbacks triggered in the BillManager, which includes our BillDatastructure and the enum:

Code: Select all

	const DONATED_TO_SERVER       = 1;
	const DONATED_TO_RECEIVER     = 2;
	const PAYED_FROM_SERVER       = 3;


I think it would be a good solution, hope this is what you need, just tell me.

Re: Payments

Posted: 27 Dec 2014, 22:12
by chco
:thumbsup: