Skip to content

onActivityResult() is not getting called, even if the PayTm app is installed in device. #6

Description

@Priyavrat-12

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions