11-Mar-2016 16:21

Case Study: Currency conversion in GoAntiFraud

goantifraud

The History

The client receives USSD-response on balance check in USD currency, but his tariffication is in a PLN currency.

We should convert USD balance to PLN in order to count our expenses in the same currency.

Client receives message like this: “Your balance is 25 USD”.

Solution

We create a USSD-request for balance checking. Assign it to current tariff and using action possibilities convert USD to PLN.

  • Step 1: We should parse balance from message, using next regular expression:

Example of USSD-processing algorythm:

Your balance is (?P<sim__balance>-?\d+(\.\d*)?) USD

  • Step 2: In action we should convert it to the PLN, using next expression:

float({sim__balance})*3,9

Where 3,9 – is current exchange rate for USD to PLN.


The GoAntiFraud system will calculate changes automatically.

USSD case will be look like this:

Have fun :)

You don't know how to use this case?

– Fill in an application form for a free webinar and we will instruct you! Or you can start your presentation right now in our chat.

goantifraud
1481
4/5
8
votes

Related Articles

GoAntiFraud

Case Study: What's new in GoAntiFraud Patch 0.99.08?

19 Jul 2016 16:36
GoAntiFraud has recently released a new patch - 0.99.08.Consider the main innovations:The SIM bank options window is addedFrom now on you can specify the SIM bank name and set a different password for the web interface of your SIM bank without having to re-add it.Change the GoIP SIM bank identificat...
GoAntiFraud

Case Study: Whats new in GoAntiFraud Patch 0.99.03?

06 May 2016 12:46
GoAntiFraud has recently released a new patch - 0.99.03 Consider the main innovations:- The status is added to the USSD / SMS historyNow, in the USSD history makes the status of the request visible:Answered – the request was successfulOptions not found - No appropriate options found in the USSD...
GoAntiFraud

Case Study: SIM-card operation schedule

25 Mar 2016 13:17
In the "Timetable" you can set patterns of behavior of SIM-cards to simulate the behavior of a living person. The schedule of calls is helpful to the terminator for scheduling calls, as close as possible to the schedule of the real subscriber who uses a mobile phone, and thus prevents the SIM...
GoAntiFraud

New Features GoAntiFraud Mobile App 0.99

02 Sep 2016 14:05
GoAntiFraud has launched an updated version of the mobile app for Android. New output options for calls statistics are added to Version 0.99.In the "General Statistics", you can now view the duration of recent calls for a selected period of time, as well as ACD and ASR indicators (average duration o...
GoAntiFraud

Case Study: What's New in GoAntiFraud Patch 0.99.11?

07 Sep 2016 08:28
New GoAntiFraud Patch 0.99.11 makes the following upgrades available: Validation of types of expressions in action is addedThe validation of types of expressions is added to the edit of ussd messages, incoming SMS, as well as events. When writing an incorrect expression in the "ACTION" section, you...
GoAntiFraud

Case Study: Channels status and what do they mean?

18 Mar 2016 15:54
The video explains the meaning of various statuses of GSM channels that are displayed in the GoAntiFraud user's personal account. The "Channels" window displays the current status for each channel: No SIM. It means that there is no SIM-card in the gateway. Simply insert the card into...
GoAntiFraud

Case Study: Operational principle of the AntiFraud systems

21 Apr 2016 10:19
Today we are going to discuss how carriers can detect gateways and block SIM-cards, as well as how you can avoid this.If you have ever thought about how this is happening you may know that the card’s behavior in the gateway by default is much different from real subscribers’ behavior. Real subscribe...

GoAntiFraud

GoAntiFraud GoAntiFraud GoAntiFraud GoAntiFraud GoAntiFraud GoAntiFraud GoAntiFraud GoAntiFraud GoAntiFraud
GoAntiFraud GoAntiFraud GoAntiFraud GoAntiFraud GoAntiFraud GoAntiFraud GoAntiFraud GoAntiFraud GoAntiFraud