callback API

For general discussion of the Poker Mavens software

callback API

Postby dimo » Wed May 29, 2019 10:20 pm

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
dimo
 
Posts: 3
Joined: Fri Sep 28, 2018 8:00 pm

Re: callback API

Postby Kent Briggs » Wed May 29, 2019 11:39 pm

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.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 4035
Joined: Wed Mar 19, 2008 8:47 pm


Return to General

Who is online

Users browsing this forum: No registered users and 3 guests

cron