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 int |
getConnectTimeout() |
static PasswordAuthentication |
getProxyCredential() |
static int |
getReadTimeout() |
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 |
setConnectTimeout(int timeout)
Sets the timeout value that will be used for making new connections to
the Stripe API (in milliseconds).
|
static void |
setProxyCredential(PasswordAuthentication auth)
Provide credential for proxy authorization if required
|
static void |
setReadTimeout(int timeout)
Sets the timeout value that will be used when reading data from an
established connection to the Stripe API (in milliseconds).
|
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 int getConnectTimeout()
public static void setConnectTimeout(int timeout)
timeout - timeout value in millisecondspublic static int getReadTimeout()
public static void setReadTimeout(int timeout)
Note that this value should be set conservatively because some API requests can take time and a short timeout increases the likelihood of causing a problem in the backend.
timeout - timeout value in millisecondspublic static void setProxyCredential(PasswordAuthentication auth)
auth - proxy required userName and passwordpublic static PasswordAuthentication getProxyCredential()
Copyright © 2017 Stripe. All rights reserved.