diff --git a/stripe.go b/stripe.go index 2ac496b5f3..1040ac267d 100644 --- a/stripe.go +++ b/stripe.go @@ -111,8 +111,8 @@ type Backends struct { type stripeClientUserAgent struct { Application *AppInfo `json:"application"` BindingsVersion string `json:"bindings_version"` - Language string `json:"language"` - LanguageVersion string `json:"language_version"` + Language string `json:"lang"` + LanguageVersion string `json:"lang_version"` Publisher string `json:"publisher"` Uname string `json:"uname"` } diff --git a/stripe_test.go b/stripe_test.go index 9dc023f8b7..41ca451dc3 100644 --- a/stripe_test.go +++ b/stripe_test.go @@ -170,12 +170,12 @@ func TestStripeClientUserAgent(t *testing.T) { // assert.Empty(t, userAgent["application"]) - assert.Equal(t, "go", userAgent["language"]) - assert.Equal(t, runtime.Version(), userAgent["language_version"]) + assert.Equal(t, "go", userAgent["lang"]) + assert.Equal(t, runtime.Version(), userAgent["lang_version"]) // Anywhere these tests are running can reasonable be expected to have a // `uname` to run, so do this basic check. - assert.NotEqual(t, stripe.UnknownPlatform, userAgent["language_version"]) + assert.NotEqual(t, stripe.UnknownPlatform, userAgent["lang_version"]) } func TestStripeClientUserAgentWithAppInfo(t *testing.T) {