From d130f4dad3c2980783e3724c517f20b71c16c8e4 Mon Sep 17 00:00:00 2001 From: "lelle.daniele" <lelle.daniele@gmail.com> Date: Sat, 30 Mar 2024 10:32:27 +0000 Subject: [PATCH] upgrade deps --- .../restintentcancel_integration_test.go | 5 +- .../restintentcapture_integration_test.go | 5 +- .../restintentconfirm_integration_test.go | 5 +- .../restintentcreate_integration_test.go | 3 +- .../get/restintentget_integration_test.go | 5 +- customer/customerstripe.go | 4 +- customer/customerstripe_integration_test.go | 3 +- error/stripe.go | 2 +- go.mod | 27 ++- go.sum | 163 ++++++------------ main.go | 2 +- payment/intent/cancel/intentcancel.go | 4 +- .../cancel/intentcancel_integration_test.go | 5 +- payment/intent/capture/intentcapture.go | 4 +- .../capture/intentcapture_integration_test.go | 5 +- payment/intent/confirm/intentconfirm.go | 4 +- .../confirm/intentconfirm_integration_test.go | 5 +- payment/intent/create/intentcreate.go | 4 +- .../create/intentcreate_integration_test.go | 5 +- payment/intent/get/intentget.go | 4 +- .../intent/get/intentget_integration_test.go | 5 +- payment/intent/stripeconv.go | 2 +- payment/intent/stripeconv_test.go | 3 +- 23 files changed, 124 insertions(+), 150 deletions(-) diff --git a/controller/rest/intent/cancel/restintentcancel_integration_test.go b/controller/rest/intent/cancel/restintentcancel_integration_test.go index fb57230..5932a41 100644 --- a/controller/rest/intent/cancel/restintentcancel_integration_test.go +++ b/controller/rest/intent/cancel/restintentcancel_integration_test.go @@ -1,3 +1,4 @@ +//go:build stripe // +build stripe package apprestintentcancel_test @@ -18,8 +19,8 @@ import ( appcurrency "github.com/lelledaniele/upaygo/currency" "github.com/gorilla/mux" - "github.com/stripe/stripe-go" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76" + "github.com/stripe/stripe-go/v76/paymentintent" ) const ( diff --git a/controller/rest/intent/capture/restintentcapture_integration_test.go b/controller/rest/intent/capture/restintentcapture_integration_test.go index e26c197..62f476d 100644 --- a/controller/rest/intent/capture/restintentcapture_integration_test.go +++ b/controller/rest/intent/capture/restintentcapture_integration_test.go @@ -1,3 +1,4 @@ +//go:build stripe // +build stripe package apprestintentcapture_test @@ -18,8 +19,8 @@ import ( appcurrency "github.com/lelledaniele/upaygo/currency" "github.com/gorilla/mux" - "github.com/stripe/stripe-go" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76" + "github.com/stripe/stripe-go/v76/paymentintent" ) const ( diff --git a/controller/rest/intent/confirm/restintentconfirm_integration_test.go b/controller/rest/intent/confirm/restintentconfirm_integration_test.go index 29ac46b..3584a05 100644 --- a/controller/rest/intent/confirm/restintentconfirm_integration_test.go +++ b/controller/rest/intent/confirm/restintentconfirm_integration_test.go @@ -1,3 +1,4 @@ +//go:build stripe // +build stripe package apprestintentconfirm_test @@ -18,8 +19,8 @@ import ( appcurrency "github.com/lelledaniele/upaygo/currency" "github.com/gorilla/mux" - "github.com/stripe/stripe-go" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76" + "github.com/stripe/stripe-go/v76/paymentintent" ) const ( diff --git a/controller/rest/intent/create/restintentcreate_integration_test.go b/controller/rest/intent/create/restintentcreate_integration_test.go index 09faf5c..219b595 100644 --- a/controller/rest/intent/create/restintentcreate_integration_test.go +++ b/controller/rest/intent/create/restintentcreate_integration_test.go @@ -1,3 +1,4 @@ +//go:build stripe // +build stripe package apprestintentcreate_test @@ -13,7 +14,7 @@ import ( "strings" "testing" - "github.com/stripe/stripe-go/customer" + "github.com/stripe/stripe-go/v76/customer" appconfig "github.com/lelledaniele/upaygo/config" apprestintentcreate "github.com/lelledaniele/upaygo/controller/rest/intent/create" diff --git a/controller/rest/intent/get/restintentget_integration_test.go b/controller/rest/intent/get/restintentget_integration_test.go index c1422b9..2fc1833 100644 --- a/controller/rest/intent/get/restintentget_integration_test.go +++ b/controller/rest/intent/get/restintentget_integration_test.go @@ -1,3 +1,4 @@ +//go:build stripe // +build stripe package apprestintentget_test @@ -18,8 +19,8 @@ import ( appcurrency "github.com/lelledaniele/upaygo/currency" "github.com/gorilla/mux" - "github.com/stripe/stripe-go" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76" + "github.com/stripe/stripe-go/v76/paymentintent" ) const ( diff --git a/customer/customerstripe.go b/customer/customerstripe.go index 59eb66a..ba9b245 100644 --- a/customer/customerstripe.go +++ b/customer/customerstripe.go @@ -5,12 +5,12 @@ import ( apperror "github.com/lelledaniele/upaygo/error" - "github.com/stripe/stripe-go/customer" + "github.com/stripe/stripe-go/v76/customer" appconfig "github.com/lelledaniele/upaygo/config" appcurrency "github.com/lelledaniele/upaygo/currency" - "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/v76" ) func NewStripe(email string, ac appcurrency.Currency) (Customer, error) { diff --git a/customer/customerstripe_integration_test.go b/customer/customerstripe_integration_test.go index a0176db..210cf79 100644 --- a/customer/customerstripe_integration_test.go +++ b/customer/customerstripe_integration_test.go @@ -1,3 +1,4 @@ +//go:build stripe // +build stripe package appcustomer_test @@ -8,7 +9,7 @@ import ( "os" "testing" - "github.com/stripe/stripe-go/customer" + "github.com/stripe/stripe-go/v76/customer" appcurrency "github.com/lelledaniele/upaygo/currency" diff --git a/error/stripe.go b/error/stripe.go index ab34797..bc7ea9e 100644 --- a/error/stripe.go +++ b/error/stripe.go @@ -3,7 +3,7 @@ package apperror import ( "encoding/json" - "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/v76" ) // Stripe returns a built-in error diff --git a/go.mod b/go.mod index 17ff3a3..6376025 100644 --- a/go.mod +++ b/go.mod @@ -1,13 +1,24 @@ module github.com/lelledaniele/upaygo -go 1.13 +go 1.21 require ( - github.com/go-chi/chi v4.0.2+incompatible // indirect - github.com/gorilla/mux v1.8.0 - github.com/stripe/stripe-go v62.10.0+incompatible - github.com/swaggo/http-swagger v0.0.0-20190614090009-c2865af9083e - github.com/swaggo/swag v1.6.7 // indirect - golang.org/x/text v0.3.4 // indirect - golang.org/x/tools v0.0.0-20190908135931-fef9eaa9e42b // indirect + github.com/gorilla/mux v1.8.1 + github.com/stripe/stripe-go/v76 v76.23.0 + github.com/swaggo/http-swagger/v2 v2.0.2 +) + +require ( + github.com/KyleBanks/depth v1.2.1 // indirect + github.com/go-openapi/jsonpointer v0.19.5 // indirect + github.com/go-openapi/jsonreference v0.20.0 // indirect + github.com/go-openapi/spec v0.20.6 // indirect + github.com/go-openapi/swag v0.19.15 // indirect + github.com/josharian/intern v1.0.0 // indirect + github.com/mailru/easyjson v0.7.6 // indirect + github.com/swaggo/files/v2 v2.0.0 // indirect + github.com/swaggo/swag v1.8.1 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/tools v0.1.12 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index 0578a6a..3f8bf81 100644 --- a/go.sum +++ b/go.sum @@ -1,126 +1,77 @@ -github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/KyleBanks/depth v1.2.1 h1:5h8fQADFrWtarTdtDudMmGsC7GPbOAu6RVB3ffsVFHc= github.com/KyleBanks/depth v1.2.1/go.mod h1:jzSb9d0L43HxTQfT+oSA1EEp2q+ne2uh6XgeJcm8brE= -github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI= -github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= -github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/agiledragon/gomonkey/v2 v2.3.1 h1:k+UnUY0EMNYUFUAQVETGY9uUTxjMdnUkP0ARyJS1zzs= +github.com/agiledragon/gomonkey/v2 v2.3.1/go.mod h1:ap1AmDzcVOAz1YpeJ3TCzIgstoaWLA6jbbgxfB4w2iY= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/gin-contrib/gzip v0.0.1/go.mod h1:fGBJBCdt6qCZuCAOwWuFhBB4OOq9EFqlo5dEaFhhu5w= -github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= -github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3/go.mod h1:VJ0WA2NBN22VlZ2dKZQPAPnyWw5XTlK1KymzLKsr59s= -github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= -github.com/gin-gonic/gin v1.3.0/go.mod h1:7cKuhb5qV2ggCFctp2fJQ+ErvciLZrIeoOSOm6mUr7Y= -github.com/gin-gonic/gin v1.4.0/go.mod h1:OW2EZn3DO8Ln9oIKOvM++LBO+5UPHJJDH72/q/3rZdM= -github.com/go-chi/chi v4.0.2+incompatible h1:maB6vn6FqCxrpz4FqWdh4+lwpyZIQS7YEAUcHlgXVRs= -github.com/go-chi/chi v4.0.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ= -github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= -github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= -github.com/go-openapi/jsonpointer v0.19.3 h1:gihV7YNZK1iK6Tgwwsxo2rJbD1GTbdm72325Bq8FI3w= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= -github.com/go-openapi/jsonreference v0.19.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= -github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= -github.com/go-openapi/jsonreference v0.19.3 h1:5cxNfTy0UVC3X8JL5ymxzyoUZmo8iZb+jeTWn7tUa8o= -github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/spec v0.19.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= -github.com/go-openapi/spec v0.19.4 h1:ixzUSnHTd6hCemgtAJgluaTSGYpLNpJY4mA2DIkdOAo= -github.com/go-openapi/spec v0.19.4/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= -github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= -github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.5 h1:lTz6Ys4CmqqCQmZPBlbQENR1/GucA2bzYTE12Pw4tFY= +github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= +github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= +github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA= +github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= +github.com/go-openapi/spec v0.20.6 h1:ich1RQ3WDbfoeTqTAb+5EIxNmpKVJZWBNah9RAT0jIQ= +github.com/go-openapi/spec v0.20.6/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= -github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= -github.com/json-iterator/go v1.1.5/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= -github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= +github.com/go-openapi/swag v0.19.15 h1:D2NRCBzS9/pEY3gP9Nl8aDqGUcPFrwG2p+CNFrLyrCM= +github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= +github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= +github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= +github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= +github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e h1:hB2xlXdHp/pmPZq0y3QnmWAArdw9PqbmotexnWx/FU8= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= -github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= -github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/mailru/easyjson v0.7.6 h1:8yTIVnZgCoiM1TgqoeTl+LfU5Jg6/xL3QhGQnimLYnA= +github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/otiai10/copy v1.7.0 h1:hVoPiN+t+7d2nzzwMiDHPSOogsWAStewq3TwU05+clE= +github.com/otiai10/copy v1.7.0/go.mod h1:rmRl6QPdJj6EiUqXQ/4Nn2lLXoNQjFCQbbNrxgc/t3U= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= -github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= -github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= -github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk= -github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= -github.com/stripe/stripe-go v62.10.0+incompatible h1:NA0ZdyXlogeRY1YRmx3xL3/4r3vQjAU3Y175+IwFoYo= -github.com/stripe/stripe-go v62.10.0+incompatible/go.mod h1:A1dQZmO/QypXmsL0T8axYZkSN/uA/T/A64pfKdBAMiY= -github.com/swaggo/files v0.0.0-20190704085106-630677cd5c14 h1:PyYN9JH5jY9j6av01SpfRMb+1DWg/i3MbGOKPxJ2wjM= -github.com/swaggo/files v0.0.0-20190704085106-630677cd5c14/go.mod h1:gxQT6pBGRuIGunNf/+tSOB5OHvguWi8Tbt82WOkf35E= -github.com/swaggo/gin-swagger v1.2.0/go.mod h1:qlH2+W7zXGZkczuL+r2nEBR2JTT+/lX05Nn6vPhc7OI= -github.com/swaggo/http-swagger v0.0.0-20190614090009-c2865af9083e h1:m5sYJ43teIUlESuKRFQRRm7kqi6ExiYwVKfoXNuRgHU= -github.com/swaggo/http-swagger v0.0.0-20190614090009-c2865af9083e/go.mod h1:eycbshptIv+tqTMlLEaGC2noPNcetbrcYEelLafrIDI= -github.com/swaggo/swag v1.5.1/go.mod h1:1Bl9F/ZBpVWh22nY0zmYyASPO1lI/zIwRDrpZU+tv8Y= -github.com/swaggo/swag v1.6.7 h1:e8GC2xDllJZr3omJkm9YfmK0Y56+rMO3cg0JBKNz09s= -github.com/swaggo/swag v1.6.7/go.mod h1:xDhTyuFIujYiN3DKWC/H/83xcfHp+UE/IzWWampG7Zc= -github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= -github.com/ugorji/go v1.1.5-pre/go.mod h1:FwP/aQVg39TXzItUBMwnWp9T9gPQnXw4Poh4/oBQZ/0= -github.com/ugorji/go/codec v0.0.0-20181022190402-e5e69e061d4f/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= -github.com/ugorji/go/codec v1.1.5-pre/go.mod h1:tULtS6Gy1AE1yCENaw4Vb//HLH5njI2tfCQDUqRd8fI= -github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/urfave/cli/v2 v2.1.1/go.mod h1:SE9GqnLQmjVa0iPEY0f1w3ygNIYcIJ0OKPMoW2caLfQ= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/net v0.0.0-20181005035420-146acd28ed58/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190611141213-3f473d35a33a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297 h1:k7pJ2yAPLPgbskkFdhRCsA77k2fySZ1zf2zCjvQCiIM= -golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20181228144115-9a3f9b0469bb/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190610200419-93c9922d18ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.3.4 h1:0YWbFKbhXG/wIiuHDSKpS0Iy7FSA+u45VtBMfQcFTTc= -golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stripe/stripe-go/v76 v76.23.0 h1:LCnTghh1x9d7r9rPbr2BcrQZ6oLpNSkT/rIWGkuMBHc= +github.com/stripe/stripe-go/v76 v76.23.0/go.mod h1:rw1MxjlAKKcZ+3FOXgTHgwiOa2ya6CPq6ykpJ0Q6Po4= +github.com/swaggo/files/v2 v2.0.0 h1:hmAt8Dkynw7Ssz46F6pn8ok6YmGZqHSVLZ+HQM7i0kw= +github.com/swaggo/files/v2 v2.0.0/go.mod h1:24kk2Y9NYEJ5lHuCra6iVwkMjIekMCaFq/0JQj66kyM= +github.com/swaggo/http-swagger/v2 v2.0.2 h1:FKCdLsl+sFCx60KFsyM0rDarwiUSZ8DqbfSyIKC9OBg= +github.com/swaggo/http-swagger/v2 v2.0.2/go.mod h1:r7/GBkAWIfK6E/OLnE8fXnviHiDeAHmgIyooa4xm3AQ= +github.com/swaggo/swag v1.8.1 h1:JuARzFX1Z1njbCGz+ZytBR15TFJwF2Q7fu8puJHhQYI= +github.com/swaggo/swag v1.8.1/go.mod h1:ugemnJsPZm/kRwFUnzBlbHRd0JY9zE1M4F+uy2pAaPQ= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/net v0.0.0-20210520170846-37e1c6afe023/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b h1:PxfKdU9lEEDYjdIzOtC4qFWgkU2rGHdKlKowJSMN9h0= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190606050223-4d9ae51c2468/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190611222205-d73e1c7e250b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190908135931-fef9eaa9e42b h1:s3JPx1wx+Kydg1rKI8uzmNMeYA+rr9m5kiLGVqEBufM= -golang.org/x/tools v0.0.0-20190908135931-fef9eaa9e42b/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE= -gopkg.in/go-playground/validator.v8 v8.18.2/go.mod h1:RX2a/7Ha8BgOhfk7j780h4/u/RRjR0eouCJSH80/M2Y= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU= +gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0 h1:hjy8E9ON/egN1tAYqKb61G10WtihqetD4sz2H+8nIeA= +gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/main.go b/main.go index 6a15b50..b484516 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,7 @@ import ( apprestintentcreate "github.com/lelledaniele/upaygo/controller/rest/intent/create" apprestintentget "github.com/lelledaniele/upaygo/controller/rest/intent/get" - httpSwagger "github.com/swaggo/http-swagger" + httpSwagger "github.com/swaggo/http-swagger/v2" "github.com/gorilla/mux" ) diff --git a/payment/intent/cancel/intentcancel.go b/payment/intent/cancel/intentcancel.go index ab3146b..f2ef842 100644 --- a/payment/intent/cancel/intentcancel.go +++ b/payment/intent/cancel/intentcancel.go @@ -8,8 +8,8 @@ import ( apperror "github.com/lelledaniele/upaygo/error" apppaymentintent "github.com/lelledaniele/upaygo/payment/intent" - "github.com/stripe/stripe-go" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76" + "github.com/stripe/stripe-go/v76/paymentintent" ) // Cancel gets the intent id from c Stripe account and cancel it diff --git a/payment/intent/cancel/intentcancel_integration_test.go b/payment/intent/cancel/intentcancel_integration_test.go index 0080654..babbdf3 100644 --- a/payment/intent/cancel/intentcancel_integration_test.go +++ b/payment/intent/cancel/intentcancel_integration_test.go @@ -1,3 +1,4 @@ +//go:build stripe // +build stripe package apppaymentintentcancel_test @@ -12,8 +13,8 @@ import ( appcurrency "github.com/lelledaniele/upaygo/currency" apppaymentintentcancel "github.com/lelledaniele/upaygo/payment/intent/cancel" - "github.com/stripe/stripe-go" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76" + "github.com/stripe/stripe-go/v76/paymentintent" ) func TestMain(m *testing.M) { diff --git a/payment/intent/capture/intentcapture.go b/payment/intent/capture/intentcapture.go index 37288dc..cd7e356 100644 --- a/payment/intent/capture/intentcapture.go +++ b/payment/intent/capture/intentcapture.go @@ -8,8 +8,8 @@ import ( apperror "github.com/lelledaniele/upaygo/error" apppaymentintent "github.com/lelledaniele/upaygo/payment/intent" - "github.com/stripe/stripe-go" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76" + "github.com/stripe/stripe-go/v76/paymentintent" ) // Capture gets the intent id from c Stripe account and capture it diff --git a/payment/intent/capture/intentcapture_integration_test.go b/payment/intent/capture/intentcapture_integration_test.go index b01b9d9..f419f19 100644 --- a/payment/intent/capture/intentcapture_integration_test.go +++ b/payment/intent/capture/intentcapture_integration_test.go @@ -1,3 +1,4 @@ +//go:build stripe // +build stripe package apppaymentintentcapture_test @@ -12,8 +13,8 @@ import ( appcurrency "github.com/lelledaniele/upaygo/currency" apppaymentintentcapture "github.com/lelledaniele/upaygo/payment/intent/capture" - "github.com/stripe/stripe-go" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76" + "github.com/stripe/stripe-go/v76/paymentintent" ) func TestMain(m *testing.M) { diff --git a/payment/intent/confirm/intentconfirm.go b/payment/intent/confirm/intentconfirm.go index d20d9f4..be26780 100644 --- a/payment/intent/confirm/intentconfirm.go +++ b/payment/intent/confirm/intentconfirm.go @@ -8,8 +8,8 @@ import ( apperror "github.com/lelledaniele/upaygo/error" apppaymentintent "github.com/lelledaniele/upaygo/payment/intent" - "github.com/stripe/stripe-go" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76" + "github.com/stripe/stripe-go/v76/paymentintent" ) // Confirm gets the intent id from c Stripe account and confirm it diff --git a/payment/intent/confirm/intentconfirm_integration_test.go b/payment/intent/confirm/intentconfirm_integration_test.go index 4832862..b85d93f 100644 --- a/payment/intent/confirm/intentconfirm_integration_test.go +++ b/payment/intent/confirm/intentconfirm_integration_test.go @@ -1,3 +1,4 @@ +//go:build stripe // +build stripe package apppaymentintentconfirm_test @@ -12,8 +13,8 @@ import ( appcurrency "github.com/lelledaniele/upaygo/currency" apppaymentintentconfirm "github.com/lelledaniele/upaygo/payment/intent/confirm" - "github.com/stripe/stripe-go" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76" + "github.com/stripe/stripe-go/v76/paymentintent" ) func TestMain(m *testing.M) { diff --git a/payment/intent/create/intentcreate.go b/payment/intent/create/intentcreate.go index 3bbd004..9f8671d 100644 --- a/payment/intent/create/intentcreate.go +++ b/payment/intent/create/intentcreate.go @@ -10,8 +10,8 @@ import ( apppaymentintent "github.com/lelledaniele/upaygo/payment/intent" apppaymentsource "github.com/lelledaniele/upaygo/payment/source" - "github.com/stripe/stripe-go" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76" + "github.com/stripe/stripe-go/v76/paymentintent" ) // Create creates an intent in Stripe and returns it as an instance of Intent diff --git a/payment/intent/create/intentcreate_integration_test.go b/payment/intent/create/intentcreate_integration_test.go index 876d6c7..f378993 100644 --- a/payment/intent/create/intentcreate_integration_test.go +++ b/payment/intent/create/intentcreate_integration_test.go @@ -1,3 +1,4 @@ +//go:build stripe // +build stripe package apppaymentintentcreate_test @@ -15,8 +16,8 @@ import ( apppaymentintentcreate "github.com/lelledaniele/upaygo/payment/intent/create" apppaymentsource "github.com/lelledaniele/upaygo/payment/source" - "github.com/stripe/stripe-go/customer" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76/customer" + "github.com/stripe/stripe-go/v76/paymentintent" ) func TestMain(m *testing.M) { diff --git a/payment/intent/get/intentget.go b/payment/intent/get/intentget.go index 5e6ea60..0d60be3 100644 --- a/payment/intent/get/intentget.go +++ b/payment/intent/get/intentget.go @@ -8,8 +8,8 @@ import ( apperror "github.com/lelledaniele/upaygo/error" apppaymentintent "github.com/lelledaniele/upaygo/payment/intent" - "github.com/stripe/stripe-go" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76" + "github.com/stripe/stripe-go/v76/paymentintent" ) // Get gets the gf intent from c Stripe account and returns it as an instance of i diff --git a/payment/intent/get/intentget_integration_test.go b/payment/intent/get/intentget_integration_test.go index 53ad2f2..9f74671 100644 --- a/payment/intent/get/intentget_integration_test.go +++ b/payment/intent/get/intentget_integration_test.go @@ -1,3 +1,4 @@ +//go:build stripe // +build stripe package apppaymentintentget_test @@ -12,8 +13,8 @@ import ( appcurrency "github.com/lelledaniele/upaygo/currency" apppaymentintentget "github.com/lelledaniele/upaygo/payment/intent/get" - "github.com/stripe/stripe-go" - "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/v76" + "github.com/stripe/stripe-go/v76/paymentintent" ) func TestMain(m *testing.M) { diff --git a/payment/intent/stripeconv.go b/payment/intent/stripeconv.go index 9309001..c7f0f2a 100644 --- a/payment/intent/stripeconv.go +++ b/payment/intent/stripeconv.go @@ -7,7 +7,7 @@ import ( appcustomer "github.com/lelledaniele/upaygo/customer" apppaymentsource "github.com/lelledaniele/upaygo/payment/source" - "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/v76" ) func FromStripeToAppIntent(intent stripe.PaymentIntent) Intent { diff --git a/payment/intent/stripeconv_test.go b/payment/intent/stripeconv_test.go index 301f4b1..7cfe15f 100644 --- a/payment/intent/stripeconv_test.go +++ b/payment/intent/stripeconv_test.go @@ -1,3 +1,4 @@ +//go:build unit // +build unit package apppaymentintent_test @@ -7,7 +8,7 @@ import ( apppaymentintent "github.com/lelledaniele/upaygo/payment/intent" - "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/v76" ) func TestFromStripeToAppIntent(t *testing.T) {