{"repo":"xsolla/buy-button-widget","free":true,"listed":false,"github":"https://github.com/xsolla/buy-button-widget","clone":"git clone https://github.com/xsolla/buy-button-widget.git","description":"Xsolla Buy Button widget for adding one-click purchases to any website.","language":"JavaScript","stars":11,"topics":["xsolla","payments","widget","javascript","web"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Xsolla Buy Button Widget Integration Guide Xsolla team created a script to simplify the integration of Buy Button product into your website. See Demo Features: Widget can be easily embedded on your page, and will provide user the details about selling item (e.g. Digital Content, Physical Good, Virtual Item, Bundle) Payment Interface opening The most appropriate interface depending on the type of device Compliant with the AMD and CommonJS specification for defining modules Getting Started You should have node v10+ and also you need to install Bower. Getting the code Linking to Xsolla CDN Script is located on our CDN and is available here: https://cdn.xsolla.net/embed/buy-button/3.1.8/widget.min.js. Use this URL to integrate script on your website. Installing with Bower If you want to include the source code of widget as a part of your project, you can install the package using Bower or NPM. Bower NPM Script Loading Asynchronous loading with callback (recommended) It is necessary to perform XBuyButtonWidget.create() when the DOM is fully loaded. You can track the appropriate event, or add the script after the element, where widget should be rendered. Synchronous loading (blocks content) CommonJS If your project uses CommonJS module format, you can access the widget by require() RequireJS (AMD) Also you can use widget with RequireJS loader ES6 import If you are using ES6 modules syntax Widget Options access token — Access token (see Get Token). Use this parameter only if you are","default_branch":null,"files":null,"tree":[],"storefront":"/r/xsolla","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xsolla/buy-button-widget/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}