diff --git a/samples/python/scenarios/a2a/human-present/x402/README.md b/samples/python/scenarios/a2a/human-present/x402/README.md index ecffb508..d49d718e 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 +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..a31685ba --- /dev/null +++ b/samples/python/scenarios/a2a/human-present/x402/run.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -e + +# 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. + +# The wrapped script, cards/run.sh, expects to be run from the repository root. +# To make this script runnable from any directory, we first change to the repo root. +cd "$(dirname "$0")/../../../../../../" + +exec bash "samples/python/scenarios/a2a/human-present/cards/run.sh" --payment-method x402 "$@"