Replies: 1 comment
-
|
The hook has been introduced in Checkout v5, see for example how it is handled for v8 ps_checkout/ps8/ps_checkout.php Line 973 in 4ba4b7e |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
For the module PrestaShop Checkout we would like to build a new feature called Shipping Tracking: the idea is to transfer the shipping detailed informations to the Payment provider who can use them to enhance the merchant experience and better follow the shipment status. It can be helpful for dealing with disputes.
As you know PrestaShop Checkout is built on top of PayPal, so we are referring to https://developer.paypal.com/docs/tracking/orders-api/integrate/
PrestaShop Core structure
PrestaShop native database structure does not handle multi-shipping orders or multi-carrier orders. It is designed for the situation where the whole order is sent as a single package using a single carrier.
Nowadays carriers who integrate PrestaShop have designed different solutions to handle multi-shipping orders (ship different parts of an order in multiple packages) and some also handle multi-carrier orders (ship different parts of an order in multiple packages, using different carriers). However there is no single way to do this in the Core sofware.
Introducing new hook
This is why we want to introduce a new hook
This hook aims to gather the desired informations for ps_checkout to be able to send the shipping detailed informations to PayPal.
This hook will be introduced
How does it work
The expected data format is
Example:
How to hook will be used on ps_checkout side
How the hook should be used on carrier module side
Expected return dormat: an array of shipment objects, even if there is only one shipment, or an empty array
How is the data is processed
Once received on ps_checkout side thanks to the hook, the data will be sent to PayPal (for ps_checkout, but it is relevant for another payment provider) to allow package tracking from the payment provider interface. The data transfer happens through API.
Beta Was this translation helpful? Give feedback.
All reactions