mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Use general fixed fee if no specific assigned
This commit is contained in:
parent
97176b9fab
commit
d6ddc1e289
1 changed files with 2 additions and 4 deletions
|
@ -27,10 +27,8 @@ const PricingTitleBadge = ( { item } ) => {
|
|||
typeof infos[ itemKey ] === 'number'
|
||||
? infos[ itemKey ].toFixed( 2 )
|
||||
: infos[ itemKey ].percentage.toFixed( 2 );
|
||||
let itemFixedAmount = infos[ itemKey ].fixedFee || 0;
|
||||
if ( itemKey === 'checkout' || itemKey === 'plater' ) {
|
||||
itemFixedAmount = infos.fixedFee[ storeCurrency ];
|
||||
}
|
||||
const itemFixedAmount =
|
||||
infos[ itemKey ].fixedFee ?? infos.fixedFee[ storeCurrency ] ?? 0;
|
||||
const fixedAmount = getFixedAmount(
|
||||
storeCurrency,
|
||||
infos.fixedFee,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue