Skip to content

Commit 9b7badd

Browse files
committed
Upgrade stripe SDK
1 parent e6d3d4d commit 9b7badd

File tree

3 files changed

+133
-45
lines changed

3 files changed

+133
-45
lines changed

api/payments_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ func TestPaymentCreate(t *testing.T) {
427427
callCount := 0
428428
stripe.SetBackend(stripe.APIBackend, NewTrackingStripeBackend(func(method, path, key string, params stripe.ParamsContainer, v interface{}) {
429429
switch path {
430-
case "/charges":
430+
case "/v1/charges":
431431
payload := params.GetParams()
432432
fmt.Println("meta:", payload.Metadata)
433433
assert.Equal(t, test.Data.firstOrder.ID, payload.Metadata["order_id"])

go.mod

Lines changed: 53 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,82 @@
11
module github.com/netlify/gocommerce
22

33
require (
4-
cloud.google.com/go v0.0.0-20170822200954-98f5696b1026
4+
cloud.google.com/go v0.0.0-20170822200954-98f5696b1026 // indirect
5+
github.com/BurntSushi/toml v0.3.1 // indirect
56
github.com/GoogleCloudPlatform/cloudsql-proxy v0.0.0-20170623214735-571947b0f240
67
github.com/PuerkitoBio/goquery v1.1.0
7-
github.com/andybalholm/cascadia v0.0.0-20161224141413-349dd0209470
8+
github.com/andybalholm/cascadia v0.0.0-20161224141413-349dd0209470 // indirect
89
github.com/davecgh/go-spew v1.1.1 // indirect
10+
github.com/denisenkom/go-mssqldb v0.0.0-20190906004059-62cf760a6c9e // indirect
911
github.com/dgrijalva/jwt-go v3.0.0+incompatible
10-
github.com/fsnotify/fsnotify v0.0.0-20170329110642-4da3e2cfbabc
12+
github.com/dropbox/godropbox v0.0.0-20190501155911-5749d3b71cbe // indirect
13+
github.com/erikstmartin/go-testdb v0.0.0-20160219214506-8d10e4a1bae5 // indirect
14+
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 // indirect
15+
github.com/facebookgo/stackerr v0.0.0-20150612192056-c2fcf88613f4 // indirect
16+
github.com/fsnotify/fsnotify v0.0.0-20170329110642-4da3e2cfbabc // indirect
1117
github.com/go-chi/chi v3.1.0+incompatible
18+
github.com/go-kit/kit v0.9.0 // indirect
19+
github.com/go-logfmt/logfmt v0.4.0 // indirect
1220
github.com/go-sql-driver/mysql v1.3.0
13-
github.com/golang/protobuf v0.0.0-20170816001514-ab9f9a6dab16
14-
github.com/hashicorp/hcl v0.0.0-20170509225359-392dba7d905e
15-
github.com/imdario/mergo v0.0.0-20160216103600-3e95a51e0639
16-
github.com/inconshreveable/mousetrap v1.0.0
21+
github.com/go-stack/stack v1.8.0 // indirect
22+
github.com/golang/protobuf v0.0.0-20170816001514-ab9f9a6dab16 // indirect
23+
github.com/hashicorp/hcl v0.0.0-20170509225359-392dba7d905e // indirect
24+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
1725
github.com/jinzhu/gorm v1.9.1
18-
github.com/jinzhu/inflection v0.0.0-20170102125226-1c35d901db3d
26+
github.com/jinzhu/inflection v0.0.0-20170102125226-1c35d901db3d // indirect
27+
github.com/jinzhu/now v1.0.1 // indirect
1928
github.com/joho/godotenv v0.0.0-20161216230537-726cc8b906e3
29+
github.com/juju/errors v0.0.0-20190806202954-0232dcc7464d // indirect
30+
github.com/juju/loggo v0.0.0-20190526231331-6e530bcce5d8 // indirect
31+
github.com/juju/testing v0.0.0-20190723135506-ce30eb24acd2 // indirect
2032
github.com/kelseyhightower/envconfig v1.3.0
21-
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515
33+
github.com/kr/pretty v0.1.0 // indirect
2234
github.com/lib/pq v0.0.0-20170306183709-ca5bc43047f2
23-
github.com/magiconair/properties v1.7.3
35+
github.com/logpacker/PayPal-Go-SDK v2.0.5+incompatible // indirect
36+
github.com/magiconair/properties v1.7.3 // indirect
2437
github.com/mattes/vat v0.0.0-20160607175015-805d21ad0739
2538
github.com/mattn/go-sqlite3 v1.10.0
2639
github.com/mitchellh/mapstructure v0.0.0-20170523030023-d0303fe80992
27-
github.com/nats-io/nats v1.2.2
28-
github.com/nats-io/nuid v0.0.0-20170303150224-3cf34f9fca4e
40+
github.com/nats-io/gnatsd v1.4.1 // indirect
41+
github.com/nats-io/go-nats v1.7.2 // indirect
42+
github.com/nats-io/nats v1.2.2 // indirect
43+
github.com/nats-io/nkeys v0.1.0 // indirect
44+
github.com/nats-io/nuid v0.0.0-20170303150224-3cf34f9fca4e // indirect
2945
github.com/netlify/PayPal-Go-SDK v0.0.0-20180614154051-732c3d08bf8a
3046
github.com/netlify/mailme v0.0.0-20170821082834-c4a76ce443c1
3147
github.com/netlify/netlify-commons v0.4.5
3248
github.com/pariz/gountries v0.0.0-20171019111738-adb00f6513a3
3349
github.com/pborman/uuid v0.0.0-20160209185913-a97ce2ca70fa
34-
github.com/pelletier/go-toml v0.0.0-20170628012637-69d355db5304
50+
github.com/pelletier/go-toml v0.0.0-20170628012637-69d355db5304 // indirect
3551
github.com/pkg/errors v0.8.0
52+
github.com/plutov/paypal v2.0.5+incompatible // indirect
3653
github.com/pmezard/go-difflib v1.0.0 // indirect
3754
github.com/rs/cors v0.0.0-20170608165155-8dd4211afb5d
38-
github.com/rybit/nats_logrus_hook v1.0.4
55+
github.com/rybit/nats_logrus_hook v1.0.4 // indirect
3956
github.com/sebest/xff v0.0.0-20160910043805-6c115e0ffa35
40-
github.com/signalfx/com_signalfx_metrics_protobuf v0.0.0-20170330202426-93e507b42f43
41-
github.com/signalfx/gohistogram v0.0.0-20160107210732-1ccfd2ff5083
42-
github.com/signalfx/golib v1.0.0
57+
github.com/signalfx/com_signalfx_metrics_protobuf v0.0.0-20170330202426-93e507b42f43 // indirect
58+
github.com/signalfx/gohistogram v0.0.0-20160107210732-1ccfd2ff5083 // indirect
59+
github.com/signalfx/golib v1.0.0 // indirect
4360
github.com/sirupsen/logrus v0.0.0-20170713114250-a3f95b5c4235
44-
github.com/spf13/afero v0.0.0-20170217164146-9be650865eab
45-
github.com/spf13/cast v1.1.0
61+
github.com/smartystreets/goconvey v0.0.0-20190731233626-505e41936337 // indirect
62+
github.com/spf13/afero v0.0.0-20170217164146-9be650865eab // indirect
63+
github.com/spf13/cast v1.1.0 // indirect
4664
github.com/spf13/cobra v0.0.0-20170228191748-fcd0c5a1df88
47-
github.com/spf13/jwalterweatherman v0.0.0-20170523133247-0efa5202c046
48-
github.com/spf13/pflag v1.0.0
49-
github.com/spf13/viper v0.0.0-20170217163817-7538d73b4eb9
50-
github.com/streadway/amqp v0.0.0-20170707203015-2cbfe40c9341
65+
github.com/spf13/jwalterweatherman v0.0.0-20170523133247-0efa5202c046 // indirect
66+
github.com/spf13/pflag v1.0.0 // indirect
67+
github.com/spf13/viper v0.0.0-20170217163817-7538d73b4eb9 // indirect
68+
github.com/streadway/amqp v0.0.0-20170707203015-2cbfe40c9341 // indirect
5169
github.com/stretchr/testify v1.2.2
52-
github.com/stripe/stripe-go v52.0.0+incompatible
53-
golang.org/x/net v0.0.0-20170721033204-ab5485076ff3
54-
golang.org/x/oauth2 v0.0.0-20170807180024-9a379c6b3e95
55-
golang.org/x/sys v0.0.0-20170721163517-c4489faa6e5a
56-
golang.org/x/text v0.0.0-20170714085652-836efe42bb4a
57-
google.golang.org/api v0.0.0-20170821230356-dd6bdadc5852
58-
google.golang.org/appengine v0.0.0-20170814190942-d9a072cfa7b9
59-
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc
60-
gopkg.in/gomail.v2 v2.0.0-20150902115704-41f357289737
61-
gopkg.in/logfmt.v0 v0.3.0
62-
gopkg.in/stack.v1 v1.6.0
63-
gopkg.in/yaml.v2 v2.0.0-20170721122051-25c4ec802a7d
70+
github.com/stripe/stripe-go v62.9.0+incompatible
71+
golang.org/x/oauth2 v0.0.0-20170807180024-9a379c6b3e95 // indirect
72+
golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect
73+
google.golang.org/api v0.0.0-20170821230356-dd6bdadc5852 // indirect
74+
google.golang.org/appengine v0.0.0-20170814190942-d9a072cfa7b9 // indirect
75+
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
76+
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
77+
gopkg.in/gomail.v2 v2.0.0-20150902115704-41f357289737 // indirect
78+
gopkg.in/logfmt.v0 v0.3.0 // indirect
79+
gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22 // indirect
80+
gopkg.in/stack.v1 v1.6.0 // indirect
81+
gopkg.in/yaml.v2 v2.0.0-20170721122051-25c4ec802a7d // indirect
6482
)

0 commit comments

Comments
 (0)