Hash param is missing in payU payment gateway android integration

后端 未结 4 1844
栀梦
栀梦 2021-01-23 21:09

I need to integrate payU payment gateway in my android app. But when app is trying to to get hash key it gives me error saying that

Hash param is missing

In de

4条回答
  •  后悔当初
    2021-01-23 21:56

    I got solution by doing little search.

    Just generate all required hashes using own server. After getting all required hashes we need to make PayuHashes Obj using this hashes and pass this Obj in intent like this

    Intent intent= new Intent(this, PayUBaseActivity.class);
    intent.putExtra(PayuConstants.PAYU_CONFIG, payuConfig);
    intent.putExtra(PayuConstants.PAYMENT_PARAMS, mPaymentParams);
    intent.putExtra(PayuConstants.PAYU_HASHES, payuHashes);
    intent.putExtra(PayuConstants.SALT, salt);
    

    PayU SDK will take care of rest

提交回复
热议问题