payu-intrepos / Android-SDK

PayU Android SDK
14 stars 8 forks source link

<!DOCTYPE of type java.lang.String cannot be converted to JSONObject #25

Closed balasasidhar closed 3 years ago

balasasidhar commented 8 years ago

I'm getting following error while using my test/production account's merchant key & salt. <!DOCTYPE of type java.lang.String cannot be converted to JSONObject

It is working if I'm using Merchant Key & Salt from Sample App

balasasidhar commented 8 years ago

After looking into the SDK Source code I found that, it is working only with PayU ( https://payubiz.in ) not with PayUMoney ( https://www.payumoney.com ).

santoshrokhade commented 7 years ago

This error is coming for targetSdkVersion 25, but working fine for targetSdkVersion 23

rahulchowdhury commented 7 years ago

This got solved after setting the ENVIRONMENT in PayUConfig and then passing it instead of setting the ENV directly to the PayUBaseActivity Intent

vivek50 commented 7 years ago

@rahulchowdhury Any other solutions are available it's not working with PayUMoney..