All our orders on Paypal are marked completed but without tracking, to avoid blocking money or other issues, Paypal recommends to add the tracking number.
We have our tracking added by other plugin in order Note, so basically we can extract from there, but we dont know how we can use your plugin to send it to PayPal, can you help us with some functions which the plugin can have and we can use to do this?
Thank you for contacting us. Adding tracking in the PayPal plugin is easy.
On the Order Details page, which is the same page where you see your order notes, click the PayPal Actions button and a modal will appear. You can add tracking within that modal.
Thank you for your previous response and for the great work on the PayPal plugin.
We would like to automate the tracking number submission to PayPal for all new orders based on order notes (e.g. from our fulfillment provider), and ideally use the same internal mechanism your plugin already uses when we manually click “PayPal Actions → Shipping Actions” and submit the tracking data.
Could you please let us know:
What is the internal function or hook used behind the “Submit” action in that modal?
Is it accessible via code (e.g. via an action or helper class), so we could programmatically call it with the PayPal Transaction ID, carrier, tracking number, and status?
Alternatively, is there a documented PHP method or filter we can use to trigger the same logic?
We’re looking to integrate this into our own automation system and would appreciate any technical pointers you could share.
You can get a reference to the PayPal client this way:
$client = wc_ppcp_get_container()->get(PaymentPlugins\PayPalSDK\PayPalClient::class); // use the PayPal client to make a request to PayPal's API. $this->client->orderMode( $order )->tracking->create( $tracker )
Kind Regards,
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Sync/Send tracking to Paypal’ is closed to new replies.