Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,11 @@ module.exports = {
appSourceId: '{{answers.project.dataCloud.appSourceId}}',
tenantId: '{{answers.project.dataCloud.tenantId}}'
},
// Note: this feature is in Developer Preview at this time. To use One Click Checkout,
// enable the oneClickCheckout flag and configure private SLAS client. For more details, please
// When shoppers use passwordless OTP login with one-click checkout, the system saves their shipping and payment information for faster checkout in the future.
// To maintain security, implement these safeguards:
// 1. Captcha - Protects the passwordless login from bots.
// 2. OTP for Email Changes - Verifies your identity before an email update, prevents accidental account lockouts from typos, and prevents unauthorized users from gaining access to saved payment methods.
// To use One Click Checkout, enable the oneClickCheckout flag and configure private SLAS client. For more details, please
// check https://github.com/SalesforceCommerceCloud/pwa-kit/releases/tag/v3.16.0
oneClickCheckout: {
enabled: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,11 @@ module.exports = {
appSourceId: '{{answers.project.dataCloud.appSourceId}}',
tenantId: '{{answers.project.dataCloud.tenantId}}'
},
// Note: this feature is in Developer Preview at this time. To use One Click Checkout,
// enable the oneClickCheckout flag and configure private SLAS client. For more details, please
// When shoppers use passwordless OTP login with one-click checkout, the system saves their shipping and payment information for faster checkout in the future.
// To maintain security, implement these safeguards:
// 1. Captcha - Protects the passwordless login from bots.
// 2. OTP for Email Changes - Verifies your identity before an email update, prevents accidental account lockouts from typos, and prevents unauthorized users from gaining access to saved payment methods.
// To use One Click Checkout, enable the oneClickCheckout flag and configure private SLAS client. For more details, please
// check https://github.com/SalesforceCommerceCloud/pwa-kit/releases/tag/v3.16.0
oneClickCheckout: {
enabled: false
Expand Down
1 change: 1 addition & 0 deletions packages/template-retail-react-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## v9.1.0-dev
- Add Page Designer Support [#3727](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3727)
- [Feature] Add Salesforce Payments support in checkout [#3725](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3725)
- One Click Checkout removed from Developer Preview. When shoppers use passwordless OTP login with one-click checkout, the system saves their shipping and payment information for faster checkout in the future. Security safeguards required: (1) Captcha - Protects the passwordless login from bots. (2) OTP for Email Changes - Verifies identity before an email update, prevents accidental account lockouts from typos, and prevents unauthorized access to saved payment methods.
- Update jest-fetch-mock and Jest 29 dependencies [#3663](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3663)
- Add Node 24 support. Drop Node 16 support [#3652](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3652)
- [Bugfix] Fix error toast for no applicable shipping methods in one-click checkout [#3673](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3673)
Expand Down
2 changes: 2 additions & 0 deletions packages/template-retail-react-app/app/routes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ export const routes = [
{
path: '/checkout',
component: (props) => {
// One Click Checkout: Saves shipping/payment for returning shoppers. Security required:
// (1) Captcha for passwordless login, (2) OTP for email changes. See config/default.js for details.
const enabled = getConfig()?.app?.oneClickCheckout?.enabled
return enabled ? <CheckoutOneClick {...props} /> : <Checkout {...props} />
},
Expand Down
9 changes: 6 additions & 3 deletions packages/template-retail-react-app/config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,12 @@ module.exports = {
appSourceId: '7ae070a6-f4ec-4def-a383-d9cacc3f20a1',
tenantId: 'g82wgnrvm-ywk9dggrrw8mtggy.pc-rnd'
},
// Note: this feature is in Developer Preview at this time. To use One Click Checkout,
// enable the oneClickCheckout flag and configure private SLAS client. For more details, please
// check https://github.com/SalesforceCommerceCloud/pwa-kit/releases/tag/v3.16.0
// One Click Checkout: When enabled, shoppers using passwordless OTP login can save shipping
// and payment information for faster checkout in the future. To use, enable the flag and
// configure private SLAS client. Security safeguards required:
// 1. Captcha - Protects the passwordless login from bots (e.g., Cloudflare Turnstile).
// 2. OTP for Email Changes - Verifies identity before an email update, prevents accidental
// account lockouts from typos, and prevents unauthorized access to saved payment methods.
oneClickCheckout: {
enabled: false
},
Expand Down
2 changes: 2 additions & 0 deletions packages/template-retail-react-app/config/mocks/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ module.exports = {
appSourceId: '7ae070a6-f4ec-4def-a383-d9cacc3f20a1',
tenantId: 'g82wgnrvm-ywk9dggrrw8mtggy.pc-rnd'
},
// One Click Checkout: Saves shipping/payment for returning shoppers. Requires: (1) Captcha
// for passwordless login, (2) OTP for email changes. See config/default.js for full notes.
oneClickCheckout: {
enabled: false
},
Expand Down
Loading