mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Merge pull request #609 from woocommerce/PCP-608-add-the-paypal-fee-to-the-custom-fields
Add "PayPal Transaction Key" into order custom fields.
This commit is contained in:
commit
63c8cb8851
1 changed files with 4 additions and 0 deletions
|
@ -81,6 +81,10 @@ class WCGatewayModule implements ModuleInterface {
|
|||
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 ) {
|
||||
update_post_meta( $wc_order->get_id(), 'PayPal Transaction Key', $paypal_fee->value() );
|
||||
}
|
||||
}
|
||||
},
|
||||
10,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue