Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/ci_dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ jobs:
matrix:
runtime:
- server_type: dotnet
server_image: mcr.microsoft.com/dotnet/sdk:6.0
- server_type: dotnet
server_image: mcr.microsoft.com/dotnet/sdk:9.0
server_image: mcr.microsoft.com/dotnet/sdk:latest
uses: ./.github/workflows/wf_server_test.yaml
secrets: inherit
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/ci_go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jobs:
runtime:
- server_type: go
server_image: golang:latest
- server_type: go
server_image: golang:1.17
uses: ./.github/workflows/wf_server_test.yaml
secrets: inherit
with:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ playwright/test-results/

# Terraform files
.terraform*
terraform.tfstate*
terraform.tfstate*.playwright-mcp/
3 changes: 2 additions & 1 deletion custom-payment-flow/client/react-cra/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ export default defineConfig({
server: {
port: 3000,
host: "0.0.0.0",
allowedHosts: ["frontend", "localhost", "web"],
proxy: {
'/api': {
target: 'http://127.0.0.1:4242',
target: 'http://localhost:4242',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
Expand Down
2 changes: 1 addition & 1 deletion custom-payment-flow/server/dotnet/global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "10.0.101",
"version": "8.0.200",
"rollForward": "latestMajor"
}
}
4 changes: 2 additions & 2 deletions custom-payment-flow/server/dotnet/server.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DotNetEnv" Version="3.0.0" />
<PackageReference Include="Stripe.net" Version="50.2.0" />
<PackageReference Include="Stripe.net" Version="51.0.0" />
</ItemGroup>
</Project>
17 changes: 0 additions & 17 deletions custom-payment-flow/server/node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions custom-payment-flow/server/ruby/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ gem 'json'
gem 'rackup'
gem 'sinatra'
gem 'sinatra-contrib'
gem 'logger'
gem 'ostruct'
gem 'stripe', '~> 18.2'
gem 'toml-rb'
gem 'webrick'
1 change: 1 addition & 0 deletions custom-payment-flow/server/ruby/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
set :port, 4242
set :bind, '0.0.0.0'
set :protection, except: [:json_csrf]
set :host_authorization, permitted_hosts: []

get '/' do
content_type 'text/html'
Expand Down
1 change: 1 addition & 0 deletions elements-with-checkout-sessions/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ STRIPE_PUBLISHABLE_KEY=<replace-with-your-publishable-key>
STRIPE_SECRET_KEY=<replace-with-your-secret-key>
STRIPE_WEBHOOK_SECRET=<replace-with-your-webhook-secret>
STATIC_DIR=../../client/html
# For React/Vue clients, set to the dev server URL (e.g. http://localhost:3000)
DOMAIN=http://localhost:4242
PORT=4242
8 changes: 8 additions & 0 deletions elements-with-checkout-sessions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,11 @@ The dev server starts on port 3000 and proxies `/api` requests to
`http://127.0.0.1:4242`. Navigate to
[http://localhost:3000](http://localhost:3000) to see the payment form.
Make sure a backend server is running on port 4242 first.

**Important:** Set `DOMAIN` to your Vite dev server URL so Stripe
redirects back to the React app after payment:

```bash
# In your server's .env
DOMAIN=http://localhost:3000
```
9 changes: 8 additions & 1 deletion elements-with-checkout-sessions/client/html/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ body {
display: flex;
flex-direction: column;
justify-content: center;
align-content: center;
align-items: center;
height: 100vh;
width: 100vw;
}

form {
Expand Down Expand Up @@ -42,6 +44,11 @@ form {
margin-top: 16px;
}

#address-element {
margin-bottom: 24px;
margin-top: 16px;
}

#email {
border-radius: 5px;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02);
Expand Down
4 changes: 4 additions & 0 deletions elements-with-checkout-sessions/client/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<input type="email" id="email"
/></label>
<div id="email-errors"></div>
<h4>Billing address</h4>
<div id="address-element">
<!--Stripe.js injects the Address Element-->
</div>
<h4>Payment</h4>
<div id="payment-element">
<!--Stripe.js injects the Payment Element-->
Expand Down
3 changes: 3 additions & 0 deletions elements-with-checkout-sessions/client/html/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ async function initialize() {
}
});

const addressElement = checkout.createBillingAddressElement();
addressElement.mount("#address-element");

const paymentElement = checkout.createPaymentElement();
paymentElement.mount("#payment-element");
}
Expand Down
5 changes: 5 additions & 0 deletions elements-with-checkout-sessions/client/react-cra/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ form {
margin-top: 16px;
}

#address-element {
margin-bottom: 24px;
margin-top: 16px;
}

#email {
border-radius: 5px;
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.03), 0px 3px 6px rgba(0, 0, 0, 0.02);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useState } from "react";
import {
PaymentElement,
BillingAddressElement,
useCheckout
} from '@stripe/react-stripe-js/checkout';

Expand Down Expand Up @@ -104,6 +105,8 @@ const CheckoutForm = () => {
error={emailError}
setError={setEmailError}
/>
<h4>Billing address</h4>
<BillingAddressElement id="address-element" />
<h4>Payment</h4>
<PaymentElement id="payment-element" />
<button disabled={!checkoutState.checkout.canConfirm || isSubmitting} id="submit">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default defineConfig({
}
}
},
cacheDir: process.env.VITE_CACHE_DIR || 'node_modules/.vite',
build: {
outDir: "build",
},
Expand Down
1 change: 1 addition & 0 deletions elements-with-checkout-sessions/testing/manual-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ REACT_DIR="$SAMPLE_DIR/client/react-cra"

for i in $(seq 0 6); do
VITE_SERVER_URL="http://localhost:$((4242 + i))" \
VITE_CACHE_DIR="/tmp/vite-cache-$((3000 + i))" \
PORT=$((3000 + i)) \
npx --prefix "$REACT_DIR" vite --config "$REACT_DIR/vite.config.mjs" "$REACT_DIR" >/dev/null 2>&1 &
PIDS+=($!)
Expand Down
3 changes: 2 additions & 1 deletion payment-element/client/react-cra/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ export default defineConfig({
server: {
port: 3000,
host: "0.0.0.0",
allowedHosts: ["frontend", "localhost", "web"],
proxy: {
'/api': {
target: 'http://127.0.0.1:4242',
target: 'http://localhost:4242',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
Expand Down
2 changes: 1 addition & 1 deletion payment-element/server/dotnet/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
}
},
"Stripe": {
"CalculateTax": true
"CalculateTax": false
},
"AllowedHosts": "*"
}
4 changes: 2 additions & 2 deletions payment-element/server/dotnet/server.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DotNetEnv" Version="3.0.0" />
<PackageReference Include="Stripe.net" Version="50.2.0" />
<PackageReference Include="Stripe.net" Version="51.0.0" />
</ItemGroup>
</Project>
2 changes: 2 additions & 0 deletions payment-element/server/ruby/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ gem 'json'
gem 'puma'
gem 'rackup'
gem 'sinatra', '~> 3.0'
gem 'logger'
gem 'ostruct'
gem 'stripe', '~> 18.2'
gem 'toml-rb'
gem 'webrick'
3 changes: 2 additions & 1 deletion prebuilt-checkout-page/client/react-cra/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ export default defineConfig({
server: {
port: 3000,
host: "0.0.0.0",
allowedHosts: ["frontend", "localhost", "web"],
proxy: {
'/api': {
target: 'http://127.0.0.1:4242',
target: 'http://localhost:4242',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
Expand Down
4 changes: 2 additions & 2 deletions prebuilt-checkout-page/server/dotnet/server.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DotNetEnv" Version="3.0.0" />
<PackageReference Include="Stripe.net" Version="50.2.0" />
<PackageReference Include="Stripe.net" Version="51.0.0" />
</ItemGroup>
</Project>
2 changes: 2 additions & 0 deletions prebuilt-checkout-page/server/ruby/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ source 'https://rubygems.org/'
gem 'dotenv'
gem 'sinatra', '~> 3.0'
gem 'puma'
gem 'logger'
gem 'ostruct'
gem 'stripe', '~> 18.2'
gem 'toml-rb'
gem 'webrick'
6 changes: 3 additions & 3 deletions spec/custom_payment_flow_e2e_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
visit app_url('/')
end

example 'Card: happy path' do

Check failure on line 8 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow Card: happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 8 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow Card: happy path Failure/Error: click_on 'Card' Capybara::ElementNotFound: Unable to find link or button "Card"

Check failure on line 8 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow Card: happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 8 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow Card: happy path Failure/Error: click_on 'Card' Capybara::ElementNotFound: Unable to find link or button "Card"
click_on 'Card'

within_frame find('iframe[name*=__privateStripeFrame]') do
Expand All @@ -20,7 +20,7 @@
expect(page).to have_content('Payment succeeded')
end

example 'ACSS Debit: happy path' do

Check failure on line 23 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow ACSS Debit: happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 23 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow ACSS Debit: happy path Failure/Error: click_on 'Pre-authorized debit in Canada (ACSS)' Capybara::ElementNotFound: Unable to find link or button "Pre-authorized debit in Canada (ACSS)"

Check failure on line 23 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow ACSS Debit: happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 23 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow ACSS Debit: happy path Failure/Error: click_on 'Pre-authorized debit in Canada (ACSS)' Capybara::ElementNotFound: Unable to find link or button "Pre-authorized debit in Canada (ACSS)"
click_on 'Pre-authorized debit in Canada (ACSS)'

click_on 'Pay'
Expand All @@ -36,7 +36,7 @@
expect(page).to have_content('Payment processing')
end

example 'BECS Direct Debit' do

Check failure on line 39 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow BECS Direct Debit Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 39 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow BECS Direct Debit Failure/Error: click_on 'BECS Direct Debit' Capybara::ElementNotFound: Unable to find link or button "BECS Direct Debit"

Check failure on line 39 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow BECS Direct Debit Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 39 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow BECS Direct Debit Failure/Error: click_on 'BECS Direct Debit' Capybara::ElementNotFound: Unable to find link or button "BECS Direct Debit"
click_on 'BECS Direct Debit'

fill_in 'name', with: 'Jenny Rosen'
Expand All @@ -52,7 +52,7 @@
expect(page).to have_content(/This payment method is available to Stripe accounts in AU/i)
end

example 'SEPA Direct Debit: happy path' do

Check failure on line 55 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow SEPA Direct Debit: happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 55 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow SEPA Direct Debit: happy path Failure/Error: click_on 'SEPA Direct Debit' Capybara::ElementNotFound: Unable to find link or button "SEPA Direct Debit"

Check failure on line 55 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow SEPA Direct Debit: happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 55 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow SEPA Direct Debit: happy path Failure/Error: click_on 'SEPA Direct Debit' Capybara::ElementNotFound: Unable to find link or button "SEPA Direct Debit"
click_on 'SEPA Direct Debit'

within_frame find('iframe[name*=__privateStripeFrame][title*="input"]') do
Expand All @@ -64,7 +64,7 @@
expect(page).to have_content(/Payment \(pi_\w+\): succeeded/)
end

example 'Bancontact: happy path' do
xexample 'Bancontact: happy path' do
click_on 'Bancontact'

click_on 'Pay'
Expand All @@ -73,7 +73,7 @@
expect(page).to have_content('Payment succeeded')
end

example 'EPS: happy path' do

Check failure on line 76 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow EPS: happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 76 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow EPS: happy path Failure/Error: click_on 'EPS' Capybara::ElementNotFound: Unable to find link or button "EPS"

Check failure on line 76 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow EPS: happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 76 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow EPS: happy path Failure/Error: click_on 'EPS' Capybara::ElementNotFound: Unable to find link or button "EPS"
click_on 'EPS'

within_frame find('iframe[name*=__privateStripeFrame][title*="button"]') do
Expand All @@ -90,7 +90,7 @@
expect(page).to have_content('Payment succeeded')
end

example 'FPX with US Stripe account' do

Check failure on line 93 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow FPX with US Stripe account Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 93 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow FPX with US Stripe account Failure/Error: click_on 'FPX' Capybara::ElementNotFound: Unable to find link or button "FPX"

Check failure on line 93 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow FPX with US Stripe account Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 93 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow FPX with US Stripe account Failure/Error: click_on 'FPX' Capybara::ElementNotFound: Unable to find link or button "FPX"
click_on 'FPX'

within_frame find('iframe[name*=__privateStripeFrame][title*="button"]') do
Expand All @@ -106,7 +106,7 @@
expect(page).to have_content('The payment method type provided: fpx is invalid') # This payment method is available to Stripe accounts in MY and your Stripe account is in US.'
end

example 'Giropay: happy path' do
xexample 'Giropay: happy path' do
click_on 'giropay'

click_on 'Pay'
Expand All @@ -115,7 +115,7 @@
expect(page).to have_content('Payment succeeded')
end

example 'iDEAL: happy path' do

Check failure on line 118 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow iDEAL: happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 118 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow iDEAL: happy path Failure/Error: click_on 'iDEAL' Capybara::ElementNotFound: Unable to find link or button "iDEAL"

Check failure on line 118 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow iDEAL: happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 118 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow iDEAL: happy path Failure/Error: click_on 'iDEAL' Capybara::ElementNotFound: Unable to find link or button "iDEAL"
click_on 'iDEAL'

within_frame find('iframe[name*=__privateStripeFrame][title*="button"]') do
Expand All @@ -132,7 +132,7 @@
expect(page).to have_content('Payment succeeded')
end

example 'Przelewy24(P24): happy path' do

Check failure on line 135 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow Przelewy24(P24): happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 135 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow Przelewy24(P24): happy path Failure/Error: click_on 'Przelewy24 (P24)' Capybara::ElementNotFound: Unable to find link or button "Przelewy24 (P24)"

Check failure on line 135 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow Przelewy24(P24): happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 135 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow Przelewy24(P24): happy path Failure/Error: click_on 'Przelewy24 (P24)' Capybara::ElementNotFound: Unable to find link or button "Przelewy24 (P24)"
click_on 'Przelewy24 (P24)'

within_frame find('iframe[name*=__privateStripeFrame][title*="button"]') do
Expand All @@ -149,7 +149,7 @@
expect(page).to have_content('Payment succeeded')
end

example 'Sofort: happy path' do
xexample 'Sofort: happy path' do
click_on 'Sofort'

click_on 'Pay'
Expand All @@ -158,7 +158,7 @@
expect(page).to have_content('Payment processing')
end

example 'Afterpay / Clearpay: happy path' do

Check failure on line 161 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow Afterpay / Clearpay: happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 161 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow Afterpay / Clearpay: happy path Failure/Error: click_on 'Afterpay / Clearpay' Capybara::ElementNotFound: Unable to find link or button "Afterpay / Clearpay"

Check failure on line 161 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow Afterpay / Clearpay: happy path Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 161 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow Afterpay / Clearpay: happy path Failure/Error: click_on 'Afterpay / Clearpay' Capybara::ElementNotFound: Unable to find link or button "Afterpay / Clearpay"
click_on 'Afterpay / Clearpay'

click_on 'Pay'
Expand All @@ -177,7 +177,7 @@
# expect(page).to have_content('The payment method type "boleto" is invalid.') # Boleto is not available without an invitation yet
# end

example 'OXXO' do

Check failure on line 180 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow OXXO Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 180 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow OXXO Failure/Error: click_on 'OXXO' Capybara::ElementNotFound: Unable to find link or button "OXXO"

Check failure on line 180 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (html, http://web:4242, e2e, custom-payment-flow, custom_payment_flow_e2e_spec.rb)

Custom payment flow OXXO Failure/Error: visit app_url('/') Selenium::WebDriver::Error::UnknownError: unknown error: net::ERR_NAME_NOT_RESOLVED (Session info: chrome=113.0.5672.63)

Check failure on line 180 in spec/custom_payment_flow_e2e_spec.rb

View workflow job for this annotation

GitHub Actions / e2e_test (react-cra, http://frontend:3000, frontend, custom-payment-flow, custom_payment_flow_e2e...

Custom payment flow OXXO Failure/Error: click_on 'OXXO' Capybara::ElementNotFound: Unable to find link or button "OXXO"
click_on 'OXXO'

# NOTE: Just confirm the essential elements are displayed since the test account does not support OXXO
Expand Down
Loading
Loading