测试荣通 v3.5.0版本的 MD5 值为:bce18831444e62ca30602ccf71f8b981

以下内容为反编译后的 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 AbstractC0092ab {
    private static final String a = "I";
    private C0143o 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, InterfaceC0132d interfaceC0132d, InterfaceC0137i interfaceC0137i, String str2, C0143o c0143o, String str3, String str4) {
        super(EnumC0090a.AdaptivePaymentsPayRequest, str, h, interfaceC0132d, interfaceC0137i);
        this.b = c0143o;
        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 = C0171t.a(jSONObject.optString("timestamp"));
            this.f = s.getString("paymentExecStatus");
            this.g = s.getString("payKey");
        } else {
            JSONArray jSONArray = s.getJSONArray("error");
            for (int i = 0; i < jSONArray.length(); i++) {
                JSONObject jSONObject2 = (JSONObject) jSONArray.get(i);
                a(new C0095ae(jSONObject2.getString("errorId"), jSONObject.getString("ack"), jSONObject2.getString("message"), jSONObject.getString("correlationId")));
            }
        }
    }

    @Override
    public final String f() {
        return "{\"responseEnvelope\":{\"timestamp\": \"" + new C0171t().format(new Date()) + "\",\"ack\": \"Success\",\"correlationId\": \"2c381977b3068\",\"build\": \"3392538\"},\"payKey\": \"AP-70M68096ML426802W\",\"paymentExecStatus\": \"COMPLETED\"}";
    }
}