0.0.0 • Published 9 months ago

membership-hub-utm v0.0.0

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

How to use?

  1. Add script to page with data-mh-api-url attribute pointing to API url:
<script src="/tests/public-api.js" data-mh-api-url="https://membership-hub-api.parrish.workers.dev"></script>
  1. Add `data-mh attributes to webflow HTML, as in example:
<!-- Account info -->
<input type="text" data-mh="first_name" />
<input type="text" data-mh="last_name" />
<input type="text" data-mh="email" />

<!-- Address info -->
<input type="text" data-mh="address__city" />
<input type="text" data-mh="address__country" />
<input type="text" data-mh="address__phone" />
<input type="text" data-mh="address__postal_code" />
<input type="text" data-mh="address__region" />
<input type="text" data-mh="address__street1" />
<input type="text" data-mh="address__street2" />

<!-- Billing info -->
<div data-mh-recurly></div>

<!-- Hidden inputs -->
<input style="display:none;" data-mh="subscription__plan_code" type="text" value="b92dbea8_999_months_1" />
<input style="display:none;" data-mh="billing_info__currency" type="text" value="USD" />

<button data-mh-submit="create_account_and_subscription" type="submit">Submit</button>
0.0.0

9 months ago