Skip to main content

Start Transaction

Your Android App
// 3rd parameter is for setting a primary colour to theme the BharatX SDK// you can remove it to use BharatX's default colour valueBharatXTransactionManager.initialize(    this, "testSimplePartnerId", "testSimpleApiKey", Color.parseColor("#000000"));
BharatXTransactionManager.startTransaction(    this,    transactionId, // optional - pass null if you don't want this param    userId, // optional - pass null if you don't want this param    phoneNumber,    amountInPaise,    // optional - you can remove this param    new BharatXTransactionManager.TransactionListener() {        @Override        void onSuccess() {            // on success        }        @Override        void onFailure() {            // on failure - optional, you can remove this        }        @Override        void onCancelled() {            // on cancelled - optional, you can remove this        }    });