Wisp SDKs
React SDK
Installation
The npm package is located here.
Install with yarn:
Install with npm:
Usage
Simply add our widget using the WispLink component as in the following example:
Props
token: (Required) public API key from the Wisp dashboard
priceId: (Required) Price ID of the product from the Wisp dashboard
cb: (Required) Callback to be called upon completion of the checkout flow
customId: (Optional) Custom ID to attach with the subscription. This is usually the customer id or user id.
children?: (Optional) children for WispLink for the button text. Will defualt to “Connect”
style?: (Optional) React.CSSProperties to style your button
Get in touch
If you would like to get in contact, join our Discord