MATM SDK LINK

Permission

1 - Need to enable location permission at the application level (otherwise scanning device issue)
2 - Need to Bluetooth permission at the application level (otherwise scanning device issue)

Device MANUFACTURED
AF60S - 3

service android :name="com.anfu.pos.library.bluetooth4.BluetoothLeService" android :enabled="true"
Code to be added in calling application's manifest with close tag in service

LIVE SDK LINK

https://docs.paysprint.in/matm/FINOSDK/LIVE_AAR/FINO_PS_MATM.aar

https://docs.paysprint.in/matm/FINOSDK/LIVE_AAR/PS_MATM_2.0.2.aar

LIVE DEMO APP LINK

https://docs.paysprint.in/matm/FINOSDK/LIVE_DEMO_CODE/PS_MATM_2.0.2_DEMOCODE_UPDATE.zip

๐Ÿ“˜

CALLING Intent

Intent intent = new Intent(getApplicationContext(), Hostnew.class);
intent.putExtra("partnerId","PS00"); //PROVIDED BY PAYSPRINT
intent.putExtra("apiKey","partnerKey"); //JWT KEY
intent.putExtra("transactionType",txntype); //ATMBE for Balance Enquiry and ATMCW for Withdrawal
intent.putExtra("amount","00");//Pass default amount 0
intent.putExtra("merchantCode","sourav");//merchant unique code and should not contain special
intent.putExtra("remarks", "Test Transaction") ;
intent.putExtra("mobileNumber", "956***
95") ;
intent.putExtra("referenceNumber", getRandomString(5,chars)) ; //send a unique integer for each request)
intent.putExtra("latitude", "22.5646") ;
intent.putExtra("longitude", "88.3895") ;
intent.putExtra("subMerchantId", "sourav") ;//merchant unique code and should not contain special
intent.putExtra("deviceManufacturerId", "3");

๐Ÿ“˜

Note : If you are getting below mentioned error.

AndroidRuntime: FATAL EXCEPTION: main
java.lang.NullPointerException: Attempt to invoke virtual method 'void com.finopaytech.finosdk.helpers.FinoApplication.register(java.lang.Object)' on a null object reference

Need to integrate the below mentioned code.

import android.app.Application;
import android.content.Context;

import com.finopaytech.finosdk.helpers.FinoApplication;

public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
FinoApplication.init(this);
}

@Override
protected void attachBaseContext(Context context)
{
    super.attachBaseContext(context);
}

}

<application
    android:name=".MyApplication"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:networkSecurityConfig="@xml/network_security_config"
    android:theme="@style/FinoAppTheme.NoActionBar">
    <activity
        android:name=".MyApplication"
        android:exported="true">
        
    </activity>