@hiccup-insurance/purchase-insurance-widget

Hiccup Purchase Insurance Widget

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@hiccup-insurance/purchase-insurance-widget
Minified + gzip package size for @hiccup-insurance/purchase-insurance-widget in KB

Readme

Hiccup Purchase Insurance Widget

This widget is suitable for partner that want to sell hiccup insurance product but didn't have their own payment system (user payment is handled from hiccup side). This widget will show insurance options and payment form (customer name and credit card number)

How to use

<div id="hiccup-purchase-insurance-widget"
     env="test"
     token="{token}"
     customer-title="Mr"
     first-name="Budi"
     last-name="Arsana"
     email="budi.arsana@hiccup.com.au"
     phone="+62817623397"
     age-min="25"
     age-max="75"
     start-date="2017-10-01"
     end-date="2017-10-05"
     country="AU"
     source-country="AU"
     pickup-state-abbrev="QLD"
     currency="AUD"
     rental-supplier="Avis"
     vehicle-class="ECMR"
     depot="Sample depot location name"
     partner-confirmation="H3H3H3"
     quote-fetched-callback="quoteFetched"
     quote-selected-callback="insuranceSelected"
     disclaimer-fetched-callback="disclaimerFetched"></div>
<script src="https://cdn.hiccup-staging.com/purchase-insurance-widget/widget.js" type="text/javascript" async></script>

explanation for each attributes

id = required, must be hiccup-purchase-insurance-widget
env = required, can be either test or live token = required, your API token

TODO: add more information for each attribute

Partner implementations

This widget have been implemented to

  1. carhire.com.au
  2. vroomvroomvroom.ca

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.