Skip to content

Commit 57a4ac0

Browse files
Fix CI failures across all samples (stripe-samples#3096)
Will need to fix custom payment flow in future PR. Some payment methods are deprecated, since this was created 6 years ago.
1 parent 6daffdc commit 57a4ac0

19 files changed

Lines changed: 54 additions & 40 deletions

File tree

.github/workflows/ci_dotnet.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ jobs:
2626
matrix:
2727
runtime:
2828
- server_type: dotnet
29-
server_image: mcr.microsoft.com/dotnet/sdk:6.0
30-
- server_type: dotnet
31-
server_image: mcr.microsoft.com/dotnet/sdk:9.0
29+
server_image: mcr.microsoft.com/dotnet/sdk:latest
3230
uses: ./.github/workflows/wf_server_test.yaml
3331
secrets: inherit
3432
with:

.github/workflows/ci_go.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ jobs:
2727
runtime:
2828
- server_type: go
2929
server_image: golang:latest
30-
- server_type: go
31-
server_image: golang:1.17
3230
uses: ./.github/workflows/wf_server_test.yaml
3331
secrets: inherit
3432
with:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,4 @@ playwright/test-results/
138138

139139
# Terraform files
140140
.terraform*
141-
terraform.tfstate*
141+
terraform.tfstate*.playwright-mcp/

custom-payment-flow/client/react-cra/vite.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default defineConfig({
1111
allowedHosts: ["frontend", "localhost", "web"],
1212
proxy: {
1313
'/api': {
14-
target: 'http://127.0.0.1:4242',
14+
target: 'http://localhost:4242',
1515
changeOrigin: true,
1616
rewrite: (path) => path.replace(/^\/api/, '')
1717
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "10.0.101",
3+
"version": "8.0.200",
44
"rollForward": "latestMajor"
55
}
66
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
3-
<TargetFramework>net10.0</TargetFramework>
3+
<TargetFramework>net9.0</TargetFramework>
44
<ImplicitUsings>enable</ImplicitUsings>
55
</PropertyGroup>
66

77
<ItemGroup>
88
<PackageReference Include="DotNetEnv" Version="3.0.0" />
9-
<PackageReference Include="Stripe.net" Version="50.2.0" />
9+
<PackageReference Include="Stripe.net" Version="51.0.0" />
1010
</ItemGroup>
1111
</Project>

custom-payment-flow/server/node/package-lock.json

Lines changed: 0 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

custom-payment-flow/server/ruby/Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ gem 'json'
55
gem 'rackup'
66
gem 'sinatra'
77
gem 'sinatra-contrib'
8+
gem 'logger'
9+
gem 'ostruct'
810
gem 'stripe', '~> 18.2'
911
gem 'toml-rb'
1012
gem 'webrick'

custom-payment-flow/server/ruby/server.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
set :port, 4242
2828
set :bind, '0.0.0.0'
2929
set :protection, except: [:json_csrf]
30+
set :host_authorization, permitted_hosts: []
3031

3132
get '/' do
3233
content_type 'text/html'

payment-element/client/react-cra/vite.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default defineConfig({
1111
allowedHosts: ["frontend", "localhost", "web"],
1212
proxy: {
1313
'/api': {
14-
target: 'http://127.0.0.1:4242',
14+
target: 'http://localhost:4242',
1515
changeOrigin: true,
1616
rewrite: (path) => path.replace(/^\/api/, '')
1717
}

0 commit comments

Comments
 (0)