RbChat v4.56630229版本的 MD5 值为:d137f4b55d6b64b50641a810905f5957
以下内容为反编译后的 I.java 源代码,内容仅作参考
package com.paypal.android.sdk;
import androidx.core.app.NotificationCompat;
import java.util.Date;
import org.json.JSONArray;
import org.json.JSONObject;
public class I extends AbstractC0058ab {
private static final String a = "I";
private C0109o b;
private String c;
private String d;
private String e;
private String f;
private String g;
private Date h;
public I(String str, H h, InterfaceC0098d interfaceC0098d, InterfaceC0103i interfaceC0103i, String str2, C0109o c0109o, String str3, String str4) {
super(EnumC0056a.AdaptivePaymentsPayRequest, str, h, interfaceC0098d, interfaceC0103i);
this.b = c0109o;
this.c = str2;
this.d = str3;
this.e = str4;
a("Accept-Language", "en_US");
a("Content-Type", "text/json; charset=UTF-8");
a("User-Agent", l().c());
a("X-PAYPAL-APPLICATION-ID", this.e);
a("X-PAYPAL-DEVICE-AUTH-TOKEN", this.d);
a("X-PAYPAL-REQUEST-DATA-FORMAT", "JSON");
a("X-PAYPAL-RESPONSE-DATA-FORMAT", "JSON");
a("X-PAYPAL-SECURITY-USERID", "MPL");
a("X-PAYPAL-SECURITY-PASSWORD", "MPL");
a("X-PAYPAL-SECURITY-SIGNATURE", "MPL");
a("X-PAYPAL-SERVICE-VERSION", "1.0.0");
}
public final String a() {
return this.f;
}
public final String b() {
return this.g;
}
public final Date c() {
return this.h;
}
@Override
public final String d() {
JSONObject jSONObject = new JSONObject();
jSONObject.accumulate("actionType", "PAY");
JSONArray jSONArray = new JSONArray();
JSONObject jSONObject2 = new JSONObject();
jSONObject2.accumulate("amount", this.b.a().toPlainString());
jSONObject2.accumulate(NotificationCompat.CATEGORY_EMAIL, this.c);
jSONArray.put(jSONObject2);
JSONObject jSONObject3 = new JSONObject();
jSONObject3.accumulate("receiver", jSONArray);
jSONObject.accumulate("receiverList", jSONObject3);
jSONObject.accumulate("cancelUrl", "http://www.paypal.com");
JSONObject jSONObject4 = new JSONObject();
jSONObject4.accumulate("useCredentials", true);
jSONObject.accumulate("sender", jSONObject4);
jSONObject.accumulate("returnUrl", "http://www.paypal.com");
jSONObject.accumulate("feesPayer", "EACHRECEIVER");
JSONObject jSONObject5 = new JSONObject();
jSONObject5.accumulate("errorLanguage", "en_US");
jSONObject5.accumulate("detailLevel", "ReturnAll");
jSONObject.accumulate("requestEnvelope", jSONObject5);
jSONObject.accumulate("currencyCode", this.b.b().getCurrencyCode());
jSONObject.toString(2);
return jSONObject.toString();
}
@Override
public final void e() {
JSONObject s = s();
JSONObject jSONObject = s.getJSONObject("responseEnvelope");
if (jSONObject.getString("ack").equals("Success")) {
this.h = C0137t.a(jSONObject.optString("timestamp"));
this.f = s.getString("paymentExecStatus");
this.g = s.getString("payKey");
return;
}
JSONArray jSONArray = s.getJSONArray("error");
for (int i = 0; i < jSONArray.length(); i++) {
JSONObject jSONObject2 = (JSONObject) jSONArray.get(i);
a(new C0061ae(jSONObject2.getString("errorId"), jSONObject.getString("ack"), jSONObject2.getString("message"), jSONObject.getString("correlationId")));
}
}
@Override
public final String f() {
return "{\"responseEnvelope\":{\"timestamp\": \"" + new C0137t().format(new Date()) + "\",\"ack\": \"Success\",\"correlationId\": \"2c381977b3068\",\"build\": \"3392538\"},\"payKey\": \"AP-70M68096ML426802W\",\"paymentExecStatus\": \"COMPLETED\"}";
}
}