mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
🚧 Sample reducer
This commit is contained in:
parent
fdffbee0ab
commit
98a626dfa3
1 changed files with 35 additions and 1 deletions
|
@ -19,7 +19,41 @@ const defaultTransient = Object.freeze( {
|
|||
|
||||
// Persistent: Values that are loaded from the DB.
|
||||
const defaultPersistent = Object.freeze( {
|
||||
shape: 'rect',
|
||||
cart: {
|
||||
enabled: true,
|
||||
methods: [ 'venmo', 'applepay', 'googlepay', 'credit card' ],
|
||||
shape: 'rect',
|
||||
label: 'Pay',
|
||||
color: 'gold',
|
||||
},
|
||||
'classic-checkout': {
|
||||
enabled: true,
|
||||
methods: [ 'venmo', 'applepay', 'googlepay', 'credit card' ],
|
||||
shape: 'rect',
|
||||
label: 'Checkout',
|
||||
color: 'gold',
|
||||
},
|
||||
'express-checkout': {
|
||||
enabled: true,
|
||||
methods: [ 'venmo', 'applepay', 'googlepay', 'credit card' ],
|
||||
shape: 'rect',
|
||||
label: 'Checkout',
|
||||
color: 'gold',
|
||||
},
|
||||
'mini-cart': {
|
||||
enabled: true,
|
||||
methods: [ 'venmo', 'applepay', 'googlepay', 'credit card' ],
|
||||
shape: 'rect',
|
||||
label: 'Pay',
|
||||
color: 'gold',
|
||||
},
|
||||
product: {
|
||||
enabled: true,
|
||||
methods: [ 'venmo', 'applepay', 'googlepay', 'credit card' ],
|
||||
shape: 'rect',
|
||||
label: 'Buy',
|
||||
color: 'gold',
|
||||
},
|
||||
} );
|
||||
|
||||
// Reducer logic.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue