Home delivery
Implementation is OPTIONAL
General flow
Client flow
add products into shopping cart
choose delivery method and time
authorize the payment
Merchant flow
confirm or reject order
process order and update order status
The payment will be settled after merchant has been sent out the order ! This process is needed because merchant may not be able to fully fill the order due the out of stock products.
The authorized payment will be released when merchant reject the order or authorization will be expired. Authorization expiration time is set by the card network.
Configuration
Configure home delivery via Smarts manager UI. Smarts supports 3 delivery methods: courier, parcel, pickup by myself. Home delivery can be fully customized. You can set delivery price, reaction time for each store, availability time and dates, location and much more.
Implement required SDK methods for home delivery
Smarts Worker App can be used to manage home delivery orders. (optional)
Implementation
You only need to create a new class, implement PickupAdapter
interface and fill all required methods. API endpoints for home delivery are created automatically and secured with token.
It is important to add @Component
annotation on top of the class. There is no restriction for class name or location in your project. Our SDK will find your implementation based on the interface (DI).
Use SmartsPickupExchange to update order status or get information from Smarts.
Last updated