From 343ec94fa0ff8c99fa4e2b6eaa9f0347d78dace1 Mon Sep 17 00:00:00 2001 From: Ayush Ojha Date: Sun, 22 Feb 2026 04:21:37 -0800 Subject: [PATCH 1/2] fix: add missing run.sh for x402 human-present scenario Add a convenience run.sh script to the x402 scenario directory that delegates to the existing cards/run.sh with --payment-method x402. Update the x402 README to reference its own run.sh. Closes #107 --- samples/python/scenarios/a2a/human-present/x402/README.md | 2 +- samples/python/scenarios/a2a/human-present/x402/run.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 samples/python/scenarios/a2a/human-present/x402/run.sh diff --git a/samples/python/scenarios/a2a/human-present/x402/README.md b/samples/python/scenarios/a2a/human-present/x402/README.md index ecffb508..d251a7e8 100644 --- a/samples/python/scenarios/a2a/human-present/x402/README.md +++ b/samples/python/scenarios/a2a/human-present/x402/README.md @@ -66,7 +66,7 @@ GOOGLE_API_KEY variable in one of two ways. You can execute the following command to run all of the steps in one terminal: ```sh -samples/python/scenarios/a2a/human-present/cards/run.sh --payment-method x402 +bash samples/python/scenarios/a2a/human-present/x402/run.sh ``` Or you can run each server in its own terminal (ensure `PAYMENT_METHOD=x402` is set for all processes): diff --git a/samples/python/scenarios/a2a/human-present/x402/run.sh b/samples/python/scenarios/a2a/human-present/x402/run.sh new file mode 100755 index 00000000..97ea9d74 --- /dev/null +++ b/samples/python/scenarios/a2a/human-present/x402/run.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# A script to automate the execution of the x402 payment example. +# This is a convenience wrapper that runs the standard scenario with +# the x402 payment method. + +SCRIPT_DIR="$(dirname "$0")" +exec bash "$SCRIPT_DIR/../cards/run.sh" --payment-method x402 From ba6d49727f1cc0a508fc8a2cde5ac2a764bed300 Mon Sep 17 00:00:00 2001 From: Ayush Ojha Date: Sun, 22 Feb 2026 04:41:29 -0800 Subject: [PATCH 2/2] Update samples/python/scenarios/a2a/human-present/x402/run.sh Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- samples/python/scenarios/a2a/human-present/x402/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/python/scenarios/a2a/human-present/x402/run.sh b/samples/python/scenarios/a2a/human-present/x402/run.sh index 97ea9d74..6d527823 100755 --- a/samples/python/scenarios/a2a/human-present/x402/run.sh +++ b/samples/python/scenarios/a2a/human-present/x402/run.sh @@ -5,4 +5,4 @@ # the x402 payment method. SCRIPT_DIR="$(dirname "$0")" -exec bash "$SCRIPT_DIR/../cards/run.sh" --payment-method x402 +exec bash "$SCRIPT_DIR/../cards/run.sh" --payment-method x402 "$@"