Skip to content

Commit dd9854b

Browse files
committed
Fix for #2 - added Stripe API version header to all requests, which allows unit tests to pass.
The version is "2012-11-07". NB: the build produced from "sbt package" will be of the form: stripe-scala_2.9.2-2012.11.07.jar
1 parent 0437cd7 commit dd9854b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.3
1+
2012.11.07

src/main/scala/com/stripe/Stripe.scala

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ abstract class APIResource {
7676
val defaultHeaders = asJavaCollection(List(
7777
new BasicHeader("X-Stripe-Client-User-Agent", json.compact(json.render(fullPropMap))),
7878
new BasicHeader("User-Agent", "Stripe/v1 ScalaBindings/%s".format(BindingsVersion)),
79+
new BasicHeader("Stripe-Version", "2012-11-07"),
7980
new BasicHeader("Authorization", "Bearer %s".format(apiKey))
8081
))
8182

0 commit comments

Comments
 (0)