membership-hub-utm
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i membership-hub-utm

Weekly Downloads

1

Version

0.0.0

License

none

Unpacked Size

3.63 kB

Total Files

4

Last publish

Collaborators

  • radarsu