Payu payement error “Some error occurred, Try again!”

折月煮酒 提交于 2019-12-02 04:24:14

setIsDebug(boolean) you need to pass false as parameter in this method to use live payment and true when testing in live mode. I've set it to false and used Real Merchant id,salt and key and it worked, no errors. Hope this helps someone.

Debug into PayUmoneyActivity ErrorResponse contains the actual error. It may be hash mismatch or wrong key.

@override
public void onFailureResponse(ErrorResponse response, String tag) {
mProgressDialog.dismiss();
Toast.makeText(context, "Some error occured", 
Toast.LENGTH_SHORT).show();
finish();
}

this method in PayUmoneyActivity does not show error from errorresponse. just the general error. which is very problematic to debug.

I think your problem is in the line

'PayUmoneySdkInitilizer.startPaymentActivityForResult(MyActivity.this, paymentParam);'.

The official document states that you have to start transaction by using

'PayUmoneyFlowManager.startPayUMoneyFlow(paymentParam,this, R.style.AppTheme_default, false);'
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!