
Delivery Module
With the Delivery Module, selection of delivery method is integrated into Walley Checkout. This gives a better user experience when selection of delivery methods are done after identification based on the given delivery address and the content in the cart. The Delivery Module is built in a way that it can interact with multiple different providers, and you can even build one yourself. The providers of such delivery methods will be referred to as delivery adapters.
Current delivery adapters​
- Ingrid Adapter - An adapter built by Walley that handles integration with the Ingrid Delivery Platform. By creating an Ingrid account and provide us with the required credentials you can get started rather easily.
- nShift Adapter - An adapter built by Walley that handles integration with nShift's apis. By creating a Delivery Checkout configuration in nShift and provide us with the required credentials you can get started rather easily.
- Custom Adapter - Build and host your own adapter that Walley Checkout will call to get the available delivery methods. This option gives you maximum flexibilty and features to empower the Delivery Module with delivery methods.
- Redlight Adapter - An adapter built by Redlight Media for merchants using WooCommerce.
Fallback strategy and Shipping fees​
If, for any reason, Walley Checkout does not receive any delivery methods from the delivery adapter, there are two different behaviours that can be applied; stop the purchase, or let the purchase through. This behaviour is controlled by a setting that is set by Merchant Services help@walley.se for your profile.
- Stop the purchase: We will show an error and stop the purchase if we cannot fetch at least one valid delivery method
- Continue: We will allow the customer to complete the purchase, with an optional fallback shipping fee. This fallback fee can be set when initializing the checkout session using the
fees.shipping
property. If no fallback fee is set then no shipping fee is charged.
Regular shipping fees should be configured inside whichever adapter system you are using, for every delivery method, and the fee will be added to the order as the customer changes selection,
and the fees.shipping
object for Initialize Checkout is instead only used for fallback purposes.
Client-side event​
A client side event is sent every time the delivery method information is changed. This event can be used to display the most recent delivery information outside Walley Checkout. When this event is received, the information can be fetched by Acquire Checkout Information in the data.shipping
object.
// Start listening to the shipping updated event
document.addEventListener("walleyCheckoutShippingUpdated", listener);