How to add new shipping to an Order in OrderPaidEvent

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hi all,
I'm using Nop version 3.4
I've created a plugin with my own Shipping Computation Method and it worked fine.

Now I want to invoke my shipping provider when the order is paid, so I can create a shipping order and get the tracking number.

How can I create a shipping order in Nop and associate it to the customer's order?
I've already created the class that implements IConsumer<OrderPaidEvent> but I do not know how to proceed.

Is there any service that creates the shipping order? Do I need to update Order entity?
Do you have any documentation about that?

Thanks in advance!
Juan
6 years ago
If you want to add a Shipment to an Order, then I suggest that you look at the code that does it.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.