mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
♻️ Move PayPal product names to config file
Because constants are better than magic strings
This commit is contained in:
parent
748c7f4d10
commit
27f4ab442f
2 changed files with 12 additions and 5 deletions
|
@ -24,3 +24,9 @@ export const PRODUCT_TYPES = {
|
|||
PHYSICAL: 'physical',
|
||||
SUBSCRIPTIONS: 'subscriptions',
|
||||
};
|
||||
|
||||
export const PAYPAL_PRODUCTS = {
|
||||
ACDC: 'PPCP',
|
||||
BCDC: 'EXPRESS_CHECKOUT',
|
||||
VAULTING: 'ADVANCED_VAULTING',
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue