Integrated the new PayTm SDK
But when the transaction is successful or failed, TransactionManager.onTransactionResponse(Bundle bundle) is getting called, But as per the documentation, it should call the onActivityResult() when the PayTM app is installed in the device.
Below is the code to initiate the transaction.
PaytmOrder paytmOrder = new PaytmOrder(orderIdString, midString, txnTokenString, txnAmountString, callbackURL);
TransactionManager transactionManager = new TransactionManager(paytmOrder, new PaytmPaymentTransactionCallback(){
@Override
public void onTransactionResponse(Bundle bundle) {
}
@Override
public void networkNotAvailable() {
}
@Override
public void onErrorProceed(String s) {
}
@Override
public void clientAuthenticationFailed(String s) {
}
@Override
public void someUIErrorOccurred(String s) {
}
@Override
public void onErrorLoadingWebPage(int i, String s, String s1) {
}
@Override
public void onBackPressedCancelTransaction() {
}
@Override
public void onTransactionCancel(String s, Bundle bundle) {
}
});
transactionManager.startTransaction(this, PAYTM_RESPONSE_CODE);
Integrated the new PayTm SDK
But when the transaction is successful or failed, TransactionManager.onTransactionResponse(Bundle bundle) is getting called, But as per the documentation, it should call the onActivityResult() when the PayTM app is installed in the device.
Below is the code to initiate the transaction.