Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Priyavrat-12 opened this issue Jun 18, 2021 · 4 comments

Comments

@Priyavrat-12
Copy link

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);
@soumyavats
Copy link
Collaborator

onTransactionResponse is called in case paytm app is not installed

@Priyavrat-12
Copy link
Author

@soumyavats This is true, But in my case, onTransactionResponse() is getting called even if the PayTm app is installed in device.

For payment/ transaction, it is not opening the PayTm app, While it opens up the web view for transaction.

@soumyavats
Copy link
Collaborator

Please mail us at integration.dev@paytm.com with a video depicting the same

@HunterPillu
Copy link

Same issue is happening on my implementation as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants