public abstract class Stripe extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
apiKey |
static String |
apiVersion |
static String |
LIVE_API_BASE |
static String |
UPLOAD_API_BASE |
static String |
VERSION |
| Constructor and Description |
|---|
Stripe() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getApiBase() |
static Proxy |
getConnectionProxy() |
static PasswordAuthentication |
getProxyCredential() |
static void |
overrideApiBase(String overriddenApiBase)
(FOR TESTING ONLY) If you'd like your API requests to hit your own
(mocked) server, you can set this up here by overriding the base api URL.
|
static void |
setConnectionProxy(Proxy proxy)
Set proxy to tunnel all Stripe connections
|
static void |
setProxyCredential(PasswordAuthentication auth)
Provide credential for proxy authorization if required
|
public static final String UPLOAD_API_BASE
public static final String LIVE_API_BASE
public static final String VERSION
public static volatile String apiKey
public static volatile String apiVersion
public static void overrideApiBase(String overriddenApiBase)
public static String getApiBase()
public static void setConnectionProxy(Proxy proxy)
proxy - proxy host and port settingpublic static Proxy getConnectionProxy()
public static void setProxyCredential(PasswordAuthentication auth)
auth - proxy required userName and passwordpublic static PasswordAuthentication getProxyCredential()
Copyright © 2016 Stripe. All rights reserved.