Context
Excerpt | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Solution
Getting started
Depending on your use cases with the one-click purchase widget
- Native integration with widget code snippet
- Direct link
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<div id="stx-one-click-purchase" style="width:450px"></div> <script type="text/javascript" src="https://mosa.demo-widgets.secutix.com/stx-widgets/v2/Widgets.js"></script> <script type="text/javascript"> STX.Widgets.start({ apiKey: '43e38c19-718c-4bbe-b08c-abd5e8826996', hostname: 'mosa.demo-shop.secutix.com', language: 'en', widgets: [ { widget: 'OneClickPurchase', root: '#stx-one-click-purchase', productId: 466677386, },] }); </script> |
Widget Parameter | Description | Example |
---|---|---|
src | URL pointing to the source code of the widget library. | If your ticket shop's URL is mosa.demo-shop.secutix.com, you simply need to replace "shop" with "widgets" and append "stx-widgets/v2/Widgets.js" at the end, like below: https://mosa.demo-widgets.secutix.com/stx-widgets/v2/Widgets.js |
hostname | The hostname of your ticket shop Point of Sales. | mosa.demo-shop.secutix.com |
language | The display language of the one-click purchase widget. | en |
productId | The ID of the product. If a product family is not supported, we will simply display an error message. | 466677386 |
Info | ||
---|---|---|
| ||
|
Info | ||
---|---|---|
| ||
|
...