Payments

ManiaControl, the completely new designed and easy to use controller managing all your Maniaplanet server.

Moderators: Wabbitface, Jocy, steeffeen, NADEO

User avatar
chco
Posts: 290
Joined: 24 Dec 2012, 09:11

Payments

Post by chco »

Quick question before I dive into the code..
Does MP keep records of all received and send planets ?
Image
User avatar
chco
Posts: 290
Joined: 24 Dec 2012, 09:11

Re: Payments

Post by chco »

For anyone interested in this subject. Dived into the code and it seems there's no history kept.
Image
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Payments

Post by steeffeen »

nope there's no payments history
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    User avatar
    chco
    Posts: 290
    Joined: 24 Dec 2012, 09:11

    Re: Payments

    Post by chco »

    ok Next plugin : bookkeeping ;)
    Image
    User avatar
    chco
    Posts: 290
    Joined: 24 Dec 2012, 09:11

    Re: Payments

    Post 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 ?
    Image
    User avatar
    chco
    Posts: 290
    Joined: 24 Dec 2012, 09:11

    Re: Payments

    Post 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
    Image
    User avatar
    chco
    Posts: 290
    Joined: 24 Dec 2012, 09:11

    Re: Payments

    Post 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.
    Image
    User avatar
    chco
    Posts: 290
    Joined: 24 Dec 2012, 09:11

    Re: Payments

    Post by chco »

    :thumbsup:
    Image
    Post Reply

    Return to “ManiaControl”

    Who is online

    Users browsing this forum: No registered users and 1 guest