mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
fix psalm
This commit is contained in:
parent
eec6ba8167
commit
3bbaeb9e10
2 changed files with 2 additions and 2 deletions
|
@ -247,7 +247,7 @@ class PayUponInvoice {
|
|||
$wc_order->update_meta_data( PayPalGateway::FEES_META_KEY, $breakdown->to_array() );
|
||||
$paypal_fee = $breakdown->paypal_fee();
|
||||
if ( $paypal_fee ) {
|
||||
$wc_order->update_meta_data( 'PayPal Transaction Fee', $paypal_fee->value() );
|
||||
$wc_order->update_meta_data( 'PayPal Transaction Fee', (string) $paypal_fee->value() );
|
||||
}
|
||||
|
||||
$wc_order->save_meta_data();
|
||||
|
|
|
@ -89,7 +89,7 @@ class WCGatewayModule implements ModuleInterface {
|
|||
$wc_order->update_meta_data( PayPalGateway::FEES_META_KEY, $breakdown->to_array() );
|
||||
$paypal_fee = $breakdown->paypal_fee();
|
||||
if ( $paypal_fee ) {
|
||||
$wc_order->update_meta_data( 'PayPal Transaction Fee', $paypal_fee->value() );
|
||||
$wc_order->update_meta_data( 'PayPal Transaction Fee', (string) $paypal_fee->value() );
|
||||
}
|
||||
|
||||
$wc_order->save_meta_data();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue