mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Create capture entity from order response capture
This commit is contained in:
parent
f013d19047
commit
7aca62a1a3
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ class PayUponInvoice {
|
|||
$wc_order->save_meta_data();
|
||||
$this->logger->info( "Ratepay payment instructions added to order #{$wc_order->get_id()}." );
|
||||
|
||||
$capture = $this->capture_factory->from_paypal_response( $order );
|
||||
$capture = $this->capture_factory->from_paypal_response( $order->purchase_units[0]->payments->captures[0] );
|
||||
$breakdown = $capture->seller_receivable_breakdown();
|
||||
if ( $breakdown ) {
|
||||
$wc_order->update_meta_data( PayPalGateway::FEES_META_KEY, $breakdown->to_array() );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue