mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Refactor
This commit is contained in:
parent
99aa80c3ec
commit
eec6ba8167
2 changed files with 6 additions and 6 deletions
|
@ -245,12 +245,12 @@ class PayUponInvoice {
|
|||
$breakdown = $capture->seller_receivable_breakdown();
|
||||
if ( $breakdown ) {
|
||||
$wc_order->update_meta_data( PayPalGateway::FEES_META_KEY, $breakdown->to_array() );
|
||||
$wc_order->save_meta_data();
|
||||
$paypal_fee = $breakdown->paypal_fee();
|
||||
if ( $paypal_fee ) {
|
||||
$wc_order->update_meta_data( 'PayPal Transaction Key', $paypal_fee->value() );
|
||||
$wc_order->save_meta_data();
|
||||
$wc_order->update_meta_data( 'PayPal Transaction Fee', $paypal_fee->value() );
|
||||
}
|
||||
|
||||
$wc_order->save_meta_data();
|
||||
}
|
||||
} catch ( RuntimeException $exception ) {
|
||||
$this->logger->error( $exception->getMessage() );
|
||||
|
|
|
@ -87,12 +87,12 @@ class WCGatewayModule implements ModuleInterface {
|
|||
$breakdown = $capture->seller_receivable_breakdown();
|
||||
if ( $breakdown ) {
|
||||
$wc_order->update_meta_data( PayPalGateway::FEES_META_KEY, $breakdown->to_array() );
|
||||
$wc_order->save_meta_data();
|
||||
$paypal_fee = $breakdown->paypal_fee();
|
||||
if ( $paypal_fee ) {
|
||||
$wc_order->update_meta_data( 'PayPal Transaction Key', $paypal_fee->value() );
|
||||
$wc_order->save_meta_data();
|
||||
$wc_order->update_meta_data( 'PayPal Transaction Fee', $paypal_fee->value() );
|
||||
}
|
||||
|
||||
$wc_order->save_meta_data();
|
||||
}
|
||||
|
||||
$fraud = $capture->fraud_processor_response();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue