callback API

For general discussion of the Poker Mavens software
Post Reply
dimo
Posts: 3
Joined: Fri Sep 28, 2018 8:00 pm

callback API

Post by dimo »

Hello,
we integrated mavens with our betting system,
the important part is user balance,when user recharging in our system,we change user balance and increase mavens balance via api, at the same time, we listening to callback api which sends from mavens server.
the problem is,when we increase mavens balance,we get callback for increase balance (as if user leave table and balance increased), as result user double charged in our system because of callback.

how can we fix this problem and whats the solution?
the first approach is,we separate the balances of systems, which user should transfer money between them wherever he needs.which is not usual in other integrated system and less user friendly.

but we looking for second solution
thanks in advance
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: callback API

Post by Kent Briggs »

Just look at the "Source" parameter that is passed to your code in the callback. If the balance changed due to joining or leaving a table the source parameter will contain the name of the table. If the balance changed from an API call, it will contain "API". There is also a Time parameter which you can use in the comparison.
Post Reply