This commit is contained in:
dinamiko 2022-10-10 15:14:34 +02:00
parent 99aa80c3ec
commit eec6ba8167
2 changed files with 6 additions and 6 deletions

View file

@ -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() );

View file

@ -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();