Skip to content

Commit 21c6f31

Browse files
committed
W-21432256 additional comment in ssr.js
1 parent 7a17308 commit 21c6f31

File tree

3 files changed

+15
-0
lines changed
  • packages
    • pwa-kit-create-app/assets
    • template-retail-react-app/app

3 files changed

+15
-0
lines changed

packages/pwa-kit-create-app/assets/bootstrap/js/overrides/app/ssr.js.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,11 @@ const {handler} = runtime.createHandler(options, (app) => {
380380
// Connect to SCRT2 URLs
381381
'*.salesforce-scrt.com',
382382
// Payment gateways
383+
// Note: Google Pay requires different CSP entries depending on the integration and environment.
384+
// - 'pay.google.com' and 'payments.google.com' are generally needed for the SDK to load and create payment tokens.
385+
// - 'google.com/pay/' and 'www.google.com/pay/' may be required for certain flows (especially with Adyen) or in some browsers
386+
// where the interactive payment sheet makes server calls directly to google.com/pay.
387+
// - You may need to adjust these URLs based on your environments.
383388
'*.demandware.net', // Used to load a valid payment scripts in test environment
384389
'*.adyen.com',
385390
'*.paypal.com',

packages/pwa-kit-create-app/assets/templates/@salesforce/retail-react-app/app/ssr.js.hbs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,11 @@ const {handler} = runtime.createHandler(options, (app) => {
380380
// Connect to SCRT2 URLs
381381
'*.salesforce-scrt.com',
382382
// Payment gateways
383+
// Note: Google Pay requires different CSP entries depending on the integration and environment.
384+
// - 'pay.google.com' and 'payments.google.com' are generally needed for the SDK to load and create payment tokens.
385+
// - 'google.com/pay/' and 'www.google.com/pay/' may be required for certain flows (especially with Adyen) or in some browsers
386+
// where the interactive payment sheet makes server calls directly to google.com/pay.
387+
// - You may need to adjust these URLs based on your environments.
383388
'*.demandware.net', // Used to load a valid payment scripts in test environment
384389
'*.adyen.com',
385390
'*.paypal.com',

packages/template-retail-react-app/app/ssr.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,11 @@ const {handler} = runtime.createHandler(options, (app) => {
389389
// Connect to SCRT2 URLs
390390
'*.salesforce-scrt.com',
391391
// Payment gateways
392+
// Note: Google Pay requires different CSP entries depending on the integration and environment.
393+
// - 'pay.google.com' and 'payments.google.com' are generally needed for the SDK to load and create payment tokens.
394+
// - 'google.com/pay/' and 'www.google.com/pay/' may be required for certain flows (especially with Adyen) or in some browsers
395+
// where the interactive payment sheet makes server calls directly to google.com/pay.
396+
// - You may need to adjust these URLs based on your environments.
392397
'*.demandware.net', // Used to load a valid payment scripts in test environment
393398
'*.adyen.com',
394399
'*.paypal.com',

0 commit comments

Comments
 (0)