payu-intrepos / PayUCheckoutPro-Android

PayUCheckoutPro SDK for Android
9 stars 9 forks source link

Merchant SMS Permission Flag not working. #30

Open devduttnetsutra opened 2 years ago

devduttnetsutra commented 2 years ago

Hi,

I don't want to SDK to ask for runtime SMS permission on bank otp page and user will enter it manually.

To do so, I set merchantSmsPermission flag to false. But still asking for Permission in OTP screen. and App is crashed when OTP is received on Mobile.

Sample code for configuration is :

         val payUCheckoutProConfig = PayUCheckoutProConfig()
         payUCheckoutProConfig.merchantSmsPermission = false
         PayUCheckoutPro.open(  this, payUPaymentParams, payUCheckoutProConfig, payUCheckoutProListener )

When app is crashed, I got Exception (Unable to start receiver com.oohyugi.sms_otp_auto_verify.SmsBroadcastReceiver: kotlin.TypeCastException: null cannot be cast to non-null type kotlin.String)