正在查看: OLX India v19.42.007 应用的 n.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: OLX India v19.42.007 应用的 n.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.payu.india.Tasks;
import android.util.Log;
import com.payu.checkoutpro.utils.PayUCheckoutProConstants;
import com.payu.india.Model.PayuConfig;
import com.payu.india.Model.PayuResponse;
import com.payu.india.Model.PostData;
import com.payu.india.Payu.a;
import com.payu.india.Tasks.base.PayUAsyncTask;
import com.payu.upisdk.util.UpiConstant;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.ProtocolException;
import java.net.URL;
import java.util.HashMap;
import javax.net.ssl.HttpsURLConnection;
import org.json.JSONException;
import org.json.JSONObject;
public class n extends PayUAsyncTask {
private final String h = getClass().getSimpleName();
private final com.payu.india.Interfaces.h i;
public n(com.payu.india.Interfaces.h hVar) {
this.i = hVar;
}
private HashMap r(HashMap hashMap) {
hashMap.put("clientType", "payu");
hashMap.put("Content-Type", "application/json");
return hashMap;
}
@Override
public PayuResponse h(PayuConfig... payuConfigArr) {
Log.d(this.h, "doInBackground");
PayuResponse payuResponse = new PayuResponse();
PostData postData = new PostData();
try {
PayuConfig payuConfig = payuConfigArr[0];
int b = payuConfig.b();
URL url = b != 0 ? b != 2 ? new URL("https://api.payu.in/") : new URL("https://sandbox.payu.in/") : new URL("https://api.payu.in/");
HttpsURLConnection e = com.payu.india.Payu.d.e(new a.b().i(a.c.POST).l(url + "otp/sdk/verify").j(payuConfig.a()).h(r(com.payu.india.Payu.f.d().b("verify_sign_in_otp"))).g());
if (e != null) {
JSONObject jSONObject = new JSONObject(com.payu.india.Payu.d.o(e).toString());
if (jSONObject.getInt("httpStatusCode") == 200) {
postData.setCode(0);
postData.setStatus(UpiConstant.SUCCESS);
postData.setResult(jSONObject.getString(PayUCheckoutProConstants.CP_TOKEN));
} else {
postData.setCode(jSONObject.getInt("responseCode"));
postData.setStatus("ERROR");
postData.setResult(jSONObject.getString("responseMessage"));
}
}
} catch (MalformedURLException e2) {
Log.d(this.h, " MalformedURLException" + e2.getMessage());
postData.setCode(5022);
postData.setStatus("ERROR");
postData.setResult(e2.getMessage());
} catch (ProtocolException e3) {
Log.d(this.h, " ProtocolException " + e3.getMessage());
postData.setCode(5016);
postData.setStatus("ERROR");
postData.setResult(e3.getMessage());
} catch (IOException e4) {
Log.d(this.h, " IOException " + e4.getMessage());
postData.setCode(5016);
postData.setStatus("ERROR");
postData.setResult(e4.getMessage());
} catch (JSONException e5) {
Log.d(this.h, " JSONException " + e5.getMessage());
postData.setCode(5014);
postData.setStatus("ERROR");
postData.setResult(e5.getMessage());
}
payuResponse.H0(postData);
return payuResponse;
}
@Override
public void l(PayuResponse payuResponse) {
super.l(payuResponse);
Log.d(this.h, " onPostExecute ");
this.i.g(payuResponse);
}
}