Sub AppStart (Args() As String)
Dim PM As PerfectMoney
PM.Initialize(Me, "AcountID","AcoutLogin","Password")
PM.Balance
PM.ActiveVoucher("111111111111111","2222222222222222222222")
StartMessageLoop
End Sub
Sub PM_Balance(result As Map)
If result.ContainsKey("error") Then
Log(result.Get("error"))
Else
Log(result)
End If
End Sub
Sub PM_ActiveVoucher(result As Map)
If result.ContainsKey("error") Then
Log(result.Get("error"))
Else
Log(result)
'VOUCHER_NUM, VOUCHER_AMOUNT, VOUCHER_AMOUNT_CURRENCY, Payee_Account, PAYMENT_BATCH_NUM
End If
End Sub