分割支払POC:環境変数リファレンス

すべてのコンポーネントで、同じ4つのCommerce OAuth資格情報が使用されます。 Commerce Admin​で、Integration​を1つ作成してから、下の.env ファイルごとに4つの値を再利用してください。 (アクティベーション手順については、分割支払いPOC:前提条件と環境セットアップ ​を参照してください)。

4つのOAuth資格情報(どこでも使用)

変数
どこから入手するか
COMMERCE_CONSUMER_KEY
Commerce Admin > System > Integrations > [統合]
COMMERCE_CONSUMER_SECRET
上記と同様 – 値はアクティベーション時にのみ表示されます
COMMERCE_ACCESS_TOKEN
上記と同じ
COMMERCE_ACCESS_TOKEN_SECRET
上記と同じ

App Builder orchestrator

split-payment-orchestrator/.env

オーケストレーターディレクトリの.env.exampleからコピーします。 このファイルをコミットしないでください。

# Commerce REST base URL — no trailing slash
COMMERCE_BASE_URL=https://your-store.example.com

# OAuth 1.0a integration credentials
COMMERCE_CONSUMER_KEY=
COMMERCE_CONSUMER_SECRET=
COMMERCE_ACCESS_TOKEN=
COMMERCE_ACCESS_TOKEN_SECRET=

# Must match split_payment/general/threshold in Commerce config (default: 100)
# Both Commerce and App Builder fall back to 100 if this is missing, non-numeric, or ≤ 0
PAYMENT_THRESHOLD=100

LOG_LEVEL=info

# Demo dashboard: if set, requires ?secret=<value> in URL or x-demo-secret header
# Leave empty for private staging only (anyone with the URL can list/accept orders)
DEMO_UI_SECRET=

# Optional: override the base URL used in dashboard action links (useful behind proxies)
DEMO_UI_BASE_URL=

Experience Cloud UI拡張機能(commerce-checkout-starter-kit)

commerce-checkout-starter-kit/.env

このコンポーネントでは、2つの資格情報セットを使用します。Admin UI SDKを使用した注文リストにはIMSを使用し、承認アクションと拒否アクションにはOAuth 1.0aを使用します。

# IMS — used by CustomMenu/commerce-rest-api to list orders
# The Admin UI SDK provides the IMS token context; these set the Commerce base URL
COMMERCE_BASE_URL=https://your-store.example.com
OAUTH_CLIENT_ID=
OAUTH_CLIENT_SECRETS=
OAUTH_TECHNICAL_ACCOUNT_ID=
OAUTH_TECHNICAL_ACCOUNT_EMAIL=
OAUTH_SCOPES=
OAUTH_IMS_ORG_ID=
AIO_CLI_ENV=stage

# OAuth 1.0a — same four credentials, COMMERCE_INTEGRATION_ prefix
COMMERCE_INTEGRATION_BASE_URL=https://your-store.example.com
COMMERCE_INTEGRATION_CONSUMER_KEY=
COMMERCE_INTEGRATION_CONSUMER_SECRET=
COMMERCE_INTEGRATION_ACCESS_TOKEN=
COMMERCE_INTEGRATION_ACCESS_TOKEN_SECRET=

シミュレーションスクリプト

commerce-backend-ui-1/.env.simulation

同じディレクトリの.env.simulation.exampleからコピーします。

COMMERCE_BASE_URL=https://your-store.example.com
COMMERCE_CONSUMER_KEY=
COMMERCE_CONSUMER_SECRET=
COMMERCE_ACCESS_TOKEN=
COMMERCE_ACCESS_TOKEN_SECRET=

メモ

PAYMENT_THRESHOLDCommerce システム構成のsplit_payment/general/thresholdと一致する必要があります。 値が見つからない場合、数値でない場合、または0以下の場合、両側のデフォルトは100です。 Commerce​のしきい値を変更する場合は、App Builder .envを一致するように更新します。

DEMO_UI_SECRET — オプションですが、localhost以外のデプロイメントでは推奨されます。 Anyone with the dashboard URL can list orders and run accept and decline if this is empty. For a real staging environment, set a shared secret.

COMMERCE_BASE_URL — Never include a trailing slash. The Commerce REST client appends /rest/V1/ automatically.

AIO_CLI_ENV — Set to stage for the Stage workspace. Change to prod when you deploy to Production.

関連する分割支払POC リソース

recommendation-more-help
commerce-learn-help-home