The website button
No code? The store owner makes a delivery button on the store portal (Developers › Website button): a link, a styled button, or a form to put inside a page. The customer gives their name, phone and where to deliver, and the request arrives on the store's Website orders page, waiting for approval like any website order.
Put it on your site#
Copy one of the snippets from the portal:
<!-- A button that opens the form -->
<a href="https://stores.dropoint.co.ke/w/YOUR-CODE/" target="_blank" rel="noopener">Order delivery</a>
<!-- The form inside your page -->
<iframe src="https://stores.dropoint.co.ke/w/YOUR-CODE/?embed=1" style="width:100%;max-width:480px;height:720px;border:0"></iframe>
The link also works on Instagram, WhatsApp or a QR code.
Show the price in your own page#
With dropoint.js, your page can show the delivery price for an address and open the form in a pop-up:
<script src="https://stores.dropoint.co.ke/static/storeportal/dropoint.js" data-store="YOUR-CODE"></script>
<button onclick="Dropoint.open()">Deliver with Dropoint</button>
<script>
Dropoint.quote({ lat: -1.292, lng: 36.785 }).then((q) => console.log(q.fee));
</script>
YOUR-CODE is the code in the button's link. It is not a secret: it can only ask for prices and send delivery requests, which the store approves before anything happens. Each device can send only a few requests an hour.