fmcreditfunctions.functions.arrays.content1
FM credit is a virtual currency that can be used in the Further Market ecosystem for various transactions such as payment of bills, products and many others.
It has different types of balance:
we will subdivide this part into two sections:
CreditGetUserBalance is used to check the user account balance that navigate on your applet:
Signature
CreditGetUserBalance(|Currency : String, CreditType : Integer(0=Principal,1=sms,2=calls,3=Inquiries,4=Votes,5=Card));
VAR Result : String;
Result := CreditGetUserBalance('XAF', 0);
ShowMessage(Result);
Exit;
CreditGetMyBalance is used to check the The balance of the business account that initiate the the transaction:
Signature
CreditGetMyBalance(|Currency : String, CreditType : Integer(0=Principal,1=sms,2=calls,3=Inquiries,4=Votes,5=Card));
VAR Result : String;
//---CreditGetMyBalance(|Currency : String, CreditType : Integer(0=Principal,1=sms,2=calls,3=Inquiries,4=Votes,5=Card));
//---CreditGetUserBalance(|Currency : String, CreditType : Integer(0=Principal,1=sms,2=calls,3=Inquiries,4=Votes,5=Card));
//---Current Account Balance
Result := CreditGetMyBalance('XAF', 0);
ShowMessage(Result);
Exit;
Return String (1=Success);CreditType : Integer(0=Principal,1=sms,2=calls,3=Inquiries,4=Votes,5=Card)
Signature
CreditChargeUser(Amount : Integer; Currency : String, CreditType : Integer);
VAR Result : String;
Result := CreditChargeUser(50, 'XAF', 0); // : Return String (1=Success)
IF Result = '1' THEN
(
ShowMessage('You where successfully charged');
)
ELSE
(
ShowMessage('Charge failed');
)