Skip to content

Commit

Permalink
Merge PR #9371 into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
alopezari committed Aug 31, 2024
2 parents 638a650 + 3bd851c commit 32b1a90
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelog/update-e2e-setup-script-env-var
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: Define WooPay Blog ID for e2e env setup


1 change: 1 addition & 0 deletions tests/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ E2E_WCPAY_STRIPE_TEST_SECRET_KEY=<stripe sk_test_xxx>
E2E_WCPAY_STRIPE_TEST_WEBHOOK_SIGNATURE_KEY=<stripe whsec_xxx>
# This should be the Stripe Account ID of a connected merchant account. For example, after onboarding an account, you can obtain the ID from WCPay Dev Tools.
E2E_WCPAY_STRIPE_ACCOUNT_ID=<stripe acct_id>
E2E_WOOPAY_BLOG_ID=<WPCOM Site ID for https://pay.woo.com>
```

**Using Live Server**
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/env/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ if [[ "$E2E_USE_LOCAL_SERVER" != false ]]; then
define( 'WCPAY_STRIPE_LIVE_SECRET_KEY', 'sk_live_XXXXXXX' );
define( 'WCPAY_ONBOARDING_ENCRYPT_KEY', str_repeat( 'a', SODIUM_CRYPTO_SECRETBOX_KEYBYTES ) );
define( 'WOOPAY_URL', 'https://pay.woo.com' );
define( 'WOOPAY_BLOG_ID', '$E2E_WOOPAY_BLOG_ID' );
"
printf "$SECRETS" > "local/secrets.php"
echo "Secrets created"
Expand Down

0 comments on commit 32b1a90

Please sign in to comment.