@@ -18,6 +18,7 @@ public abstract class Stripe {
18
18
public static volatile String apiKey ;
19
19
public static volatile String apiVersion ;
20
20
public static volatile String clientId ;
21
+ public static volatile String partnerId ;
21
22
22
23
// Note that URLConnection reserves the value of 0 to mean "infinite
23
24
// timeout", so we use -1 here to represent an unset value which should
@@ -146,11 +147,15 @@ public static PasswordAuthentication getProxyCredential() {
146
147
}
147
148
148
149
public static void setAppInfo (String name ) {
149
- setAppInfo (name , null , null );
150
+ setAppInfo (name , null , null , null );
150
151
}
151
152
152
153
public static void setAppInfo (String name , String version ) {
153
- setAppInfo (name , version , null );
154
+ setAppInfo (name , version , null , null );
155
+ }
156
+
157
+ public static void setAppInfo (String name , String version , String url ) {
158
+ setAppInfo (name , version , url , null );
154
159
}
155
160
156
161
/**
@@ -159,15 +164,17 @@ public static void setAppInfo(String name, String version) {
159
164
* @param name Name of your application (e.g. "MyAwesomeApp")
160
165
* @param version Version of your application (e.g. "1.2.34")
161
166
* @param url Website for your application (e.g. "https://myawesomeapp.info")
167
+ * @param partnerId Your Stripe Partner ID (e.g. "pp_partner_1234")
162
168
*/
163
- public static void setAppInfo (String name , String version , String url ) {
169
+ public static void setAppInfo (String name , String version , String url , String partnerId ) {
164
170
if (appInfo == null ) {
165
171
appInfo = new HashMap <String , String >();
166
172
}
167
173
168
174
appInfo .put ("name" , name );
169
175
appInfo .put ("version" , version );
170
176
appInfo .put ("url" , url );
177
+ appInfo .put ("partner_id" , partnerId );
171
178
}
172
179
173
180
public static Map <String , String > getAppInfo () {
0 commit comments