You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you're planning on using ProGuard, make sure that you exclude the Stripe bindings. You can do this by adding the following to your `proguard.cfg` file:
41
41
42
-
-keep class com.stripe.** { *; }
42
+
```
43
+
-keep class com.stripe.** { *; }
44
+
```
43
45
44
46
## Documentation
45
47
@@ -86,7 +88,7 @@ For apps that need to use multiple keys during the lifetime of a process, like
86
88
one that uses [Stripe Connect][connect], it's also possible to set a
This information is passed along when the library makes calls to the Stripe
131
135
API.
132
136
137
+
### Request latency telemetry
138
+
139
+
By default, the library sends request latency telemetry to Stripe. These
140
+
numbers help Stripe improve the overall latency of its API for all users.
141
+
142
+
You can disable this behavior if you prefer:
143
+
144
+
```java
145
+
Stripe.enableTelemetry =false;
146
+
```
147
+
133
148
## Development
134
149
135
150
The test suite depends on [stripe-mock], so make sure to fetch and run it from a
136
151
background terminal ([stripe-mock's README][stripe-mock] also contains
137
152
instructions for installing via Homebrew and other methods):
138
153
139
-
go get -u github.com/stripe/stripe-mock
140
-
stripe-mock
154
+
```sh
155
+
go get -u github.com/stripe/stripe-mock
156
+
stripe-mock
157
+
```
141
158
142
159
You must have Gradle installed. To run the tests:
143
160
144
-
./gradlew test
161
+
```sh
162
+
./gradlew test
163
+
```
145
164
146
165
You can run particular tests by passing `--tests Class#method`. Make sure you use the fully qualified class name. For example:
147
166
148
-
./gradlew test --tests com.stripe.model.AccountTest
149
-
./gradlew test --tests com.stripe.functional.ChargeTest
150
-
./gradlew test --tests com.stripe.functional.ChargeTest.testChargeCreate
167
+
```sh
168
+
./gradlew test --tests com.stripe.model.AccountTest
169
+
./gradlew test --tests com.stripe.functional.ChargeTest
170
+
./gradlew test --tests com.stripe.functional.ChargeTest.testChargeCreate
171
+
```
151
172
152
173
The library uses [Spotless][spotless] along with
153
174
[google-java-format][google-java-format] for code formatting. Code must be
154
175
formatted before PRs are submitted, otherwise CI will fail. Run the formatter
155
176
with:
156
177
157
-
./gradlew spotlessApply
178
+
```sh
179
+
./gradlew spotlessApply
180
+
```
158
181
159
182
The library uses [Project Lombok][lombok]. While it is not a requirement, you might want to install a [plugin][lombok-plugins] for your favorite IDE to facilitate development.
0 commit comments