mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Pass the correct info to update tracking
This commit is contained in:
parent
f8e7b0eb0a
commit
ff6073dc60
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ class OrderTrackingEndpoint {
|
|||
$action = $data['action'];
|
||||
$request_body = $this->extract_tracking_information( $data );
|
||||
$order_id = (int) $data['order_id'];
|
||||
$action === 'create' ? $this->add_tracking_information( $request_body, $order_id ) : $this->update_tracking_information( $data, $order_id );
|
||||
$action === 'create' ? $this->add_tracking_information( $request_body, $order_id ) : $this->update_tracking_information( $request_body, $order_id );
|
||||
|
||||
$action_message = $action === 'create' ? 'created' : 'updated';
|
||||
$message = sprintf(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue