Further Market
  • Essentials

    • Foreword
    • What is FM Script ?
    • The philosophy and benefits of FmScript
    • What you will learn
  • Recall

    • Internet: who? what? What is that?
    • Further market and FMScript
    • The compiler
  • Download
  • Getting started

    • Installation
    • Create a business account
    • Connect to the PC application
    • Create your first applet
    • Create your first web applet
    • Compiler view
  • Basics

    • basic rules
    • Reserved keywords
    • The Syntax
    • Coding Style
    • comments
    • Variables, constants, and data types
    • Convertion of types
    • Conditions and loops
  • Functions

    • Create a Menu
    • Create input field (Input2)
    • Create a QR Code
    • Scan a QR Code
    • Strings functions
    • Array functions
    • Date Time functions
    • Mathematics functions
    • JSON functions
    • XML functions
    • Call Http request
    • Manipulate Sessions
    • Financial functions
    • Notifications
    • Bleutooth Printer
  • Demos

    • Advanced Inputs
    • Call http Request
    • loops and conditions
    • Menu inputs
    • Array items count
    • Simpe for
    • simple select count Sql Query
    • Date and Time picker form
    • Get credit balance
    • is valid city
    • user info from phone number
    • get country and city from form
    • simple ussd link switch
    • charge user credit
    • simple message box
    • user entry code
    • get users relations
    • my external payements collected
    • call google Map
    • in App direct publish
    • Geo location
    • Charts
    • menu with hints
    • call system Messenger
    • user start code
    • In call Gallery
    • credit card payment Request
    • MTN CMR Airtime Product Subscription
    • MenuItemAddContacts
    • AJax and FM Input
    • Input2
    • MenuItemAddRichMedias
    • MenuItemAddTagsItems2
    • BlinBlin Menu + javascript
    • GENERAL ALERT MESSAGE WITH JSON OPTIONS
    • Barcode
  • databases

    • CRM
    • External Payments
    • Bills
    • Sales
    • Games
    • Applets
    • Payments Gateway
    • Manipulate Select Queries
  • APIs

    • Further Markey Pay button integration
    • Mobile Money cash collector
    • Bill Api
    • API PUBLISH PRODUCT
    • Sale Api
    • SMS Api
  • Advanced

    • Actions scheduler
    • Events settings
  • USSD CAMEROON

Use FM Credit in your Applets

  • What is FM Credit ?
  • Get account balance
    • The user balance
    • Get account balance
  • CreditChargeUser

fmcreditfunctions.functions.arrays.content1

What is FM Credit ?

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:

  • Principal;
  • sms;
  • calls;
  • Inquiries;
  • Votes;
  • Card;
  • Commissions.

We will now present some exposed fmcredit for the handling of Users' Further Market balances.

Get account balance

we will subdivide this part into two sections:

  • The user balance;
  • The balance of the business account.

The user balance

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));
            
        

Demo
            
VAR Result : String;

Result := CreditGetUserBalance('XAF', 0); 

ShowMessage(Result);     
Exit; 
            
        

This function works only In production(real user session)

The balance of the business account

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));
            
        

Demo
            
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; 
            
        

This function works only In production Mode

CreditChargeUser

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); 
            
        

Demo
            
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');
)                                 
            
        

NB: The user must confirm the transaction by providing his PIN Code(5 digits) from his Terminal.

Manipulate sessions
Notifications


Our Partners

Support
      Telephone : (+237) 675979899 / 676009100
      Email : fm_support@f-m.fm
      P.O Box : 774 BAFOUSSAM
Available On

no
no

Further Market Inc
Copyright © 2012-2021.