悦享送 v3.5.1版本的 MD5 值为:111dc8a16f422da8b2f1cf208abae9ea
以下内容为反编译后的 C0133e.java 源代码,内容仅作参考
package com.paypal.android.sdk;
import com.autonavi.base.amap.mapcore.tools.GLMapStaticValue;
import com.paypal.android.sdk.payments.PaymentActivity;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
public class C0133e {
private static final String a = "e";
private static volatile C0133e b;
private static boolean c;
private final Map d;
private int e;
protected C0133e() {
HashMap hashMap = new HashMap();
this.d = hashMap;
this.e = GLMapStaticValue.ANIMATION_FLUENT_TIME;
C0136h c0136h = new C0136h();
c0136h.a("live");
c0136h.a(new HashMap());
c0136h.a().put(EnumC0090a.OAuth2Request, "https://api.paypal.com/v1/oauth2/token");
c0136h.a().put(EnumC0090a.AdaptivePaymentsPayRequest, "https://svcs.paypal.com/AdaptivePayments/Pay");
c0136h.a().put(EnumC0090a.DeviceInterrogationV2Request, "https://mobileclient.paypal.com/GMAdapter/DeviceInterrogation");
c0136h.a().put(EnumC0090a.DeviceAuthenticateUser, "https://mobileclient.paypal.com/GMAdapter/DeviceAuthenticateUser");
c0136h.a().put(EnumC0090a.CreditCardPaymentRequest, "https://api.paypal.com/v1/payments/payment");
c0136h.a().put(EnumC0090a.TokenizeCreditCardRequest, "https://api.paypal.com/v1/vault/credit-card");
c0136h.a().put(EnumC0090a.DeleteCreditCardRequest, "https://api.paypal.com/v1/vault/credit-card");
hashMap.put("live", c0136h);
C0136h c0136h2 = new C0136h();
c0136h2.a(PaymentActivity.ENVIRONMENT_SANDBOX);
c0136h2.a(new HashMap());
c0136h2.a().put(EnumC0090a.OAuth2Request, "https://api.sandbox.paypal.com/v1/oauth2/token");
c0136h2.a().put(EnumC0090a.AdaptivePaymentsPayRequest, "https://svcs.sandbox.paypal.com/AdaptivePayments/Pay");
c0136h2.a().put(EnumC0090a.DeviceInterrogationV2Request, "https://mobileclient.sandbox.paypal.com/GMAdapter/DeviceInterrogation");
c0136h2.a().put(EnumC0090a.DeviceAuthenticateUser, "https://mobileclient.sandbox.paypal.com/GMAdapter/DeviceAuthenticateUser");
c0136h2.a().put(EnumC0090a.CreditCardPaymentRequest, "https://api.sandbox.paypal.com/v1/payments/payment");
c0136h2.a().put(EnumC0090a.TokenizeCreditCardRequest, "https://api.sandbox.paypal.com/v1/vault/credit-card");
c0136h2.a().put(EnumC0090a.DeleteCreditCardRequest, "https://api.sandbox.paypal.com/v1/vault/credit-card");
hashMap.put(PaymentActivity.ENVIRONMENT_SANDBOX, c0136h2);
C0136h c0136h3 = new C0136h();
c0136h3.a(PaymentActivity.ENVIRONMENT_NO_NETWORK);
c0136h3.a(new HashMap());
hashMap.put(PaymentActivity.ENVIRONMENT_NO_NETWORK, c0136h3);
}
public static C0133e a() {
if (b == null) {
synchronized (C0133e.class) {
if (b == null) {
c = false;
b = new C0133e();
}
}
}
return b;
}
public static boolean a(String str) {
return str.equals(PaymentActivity.ENVIRONMENT_NO_NETWORK);
}
public static boolean b(String str) {
return str.startsWith(PaymentActivity.ENVIRONMENT_SANDBOX);
}
public static boolean c(String str) {
return str.equals("live");
}
public final String a(String str, EnumC0090a enumC0090a) {
if (this.d.get(str) == null) {
Objects.toString(this.d);
throw new RuntimeException("Invalid environment selected:" + str);
}
C0136h c0136h = (C0136h) this.d.get(str);
if (c0136h == null || c0136h.a() == null) {
return null;
}
return (String) c0136h.a().get(enumC0090a);
}
public final int b() {
return this.e;
}
}