在paytm all in one android SDK中,如果paytm app没有安装在用户的设备上,则支付成功后没有响应

问题描述

enter image description here

支付成功后出现404错误

        @Override
        public void onTransactionResponse(Bundle inResponse) {
            Log.d(AppConstants.TAG,"Payment Transaction response " + inResponse.toString());
            //not getting response here
        }

解决方法

解决方案:-

问题出在 Initiate transaction api 文档中 callbackurl 参数是可选的,但在 sdk 集成文档(Android)中 callbackurl 是强制性的,这就是我们面临这个问题的原因。

参考网址 https://github.com/paytm/Paytm_Payments_Android_Sample_Apps/issues/2