# Changelog

## 3.1.8 - 2022-10-28
- [feat] Added work with free items

## 3.1.7 - 2022-07-12
- [feat] Added close function

## 3.1.6 - 2022-05-30
- [fix] Errors at console

## 3.1.5 - 2022-05-25
- [fix] Use authorization for widget init request

## 3.1.4 - 2020-09-10
- [fix] Update paystation-embed version

## 3.1.3 - 2020-08-27
- [feature] Move NPM package to Xsolla org

## 3.1.2 - 2020-07-13
- [feature] Renamed to buy-button-widget, update css class names
- [feature] Added NPM support

## 3.0.3. - 2020-07-10
- [feature] Renamed to buybutton-widget
- [fix] Updated dependencies
- [fix] Updated old Javascript syntax

## 3.0.2. - 2020-06-01
- [feature] Added access_data settings

## 3.0.1. - 2020-04-30
- [fix] Paystation events forwarding

## 3.0.0. - 2020-03-01
- [feature] Updated widget for new schema

## 2.3.0. - 2019-12-06
- [feature] Removed lodash and JQuery from project

## 2.2.3. - 2019-12-04
- [fix] Updated button behavior with null price

## 2.2.2. - 2019-10-02
- [fix] Xsolla Login Integration
- [fix] Potential security vulnerability in one of module dependencies

## 2.2.1. - 2019-09-09
- [fix] Conflicts with React Dev Tools Extension

## 2.2.0. - 2019-09-04
- [feature] Xsolla Login Integration

## 2.1.9. - 2019-08-02
- [fix] Do deep copy for options

## 2.1.8. - 2019-07-23
- [fix] Updated PayStation Widget

## 2.1.7. - 2019-06-19
- [fix] Fixed logger

## 2.1.6. - 2019-05-30
- [feature] Changed amount separator

## 2.1.4. - 2018-09-04
- [fix] Added default behaviour for unknown currencies

## 2.1.3. - 2017-11-02
- [feature] The parameter config.template was added. The available values are:
'standard' and 'simple'. By default, 'standard'.

## 2.1.2. - 2017-07-21
- [feature] Disable purchase button if game isn't available in user's country

## 2.1.1. - 2017-05-30
- [feature] Show 'Pre-Prepurchase' instead of 'Buy Now' if game isn't released

## 2.1.0. - 2017-03-20

- [fix] Removed unused template 'compact'
- [feature] Added price without discount on payment button
- [feature] New design for payment button

## 2.0.0 - 2016-11-07

- [feature] New design for widget
- [feature] Added **theme** parameter for custom color
- [feature] Added common size widget, deleted 'full' version

## 1.0.4 - 2016-10-04

- [feature] Tips support for 'tiny' and 'compact' templates
- [feature] Added **host** parameter for custom PayStation hosts
- [feature] Custom spinner

## 1.0.3 - 2016-05-24

- [feature] Formatting currency

## 1.0.2 - 2016-04-08

- [feature] Rendering with 'default' and 'dark' color themes

## 1.0.1 - 2016-02-15

- [fix] Application URL

## 1.0.0 - 2016-02-12

- [feature] Rendering with 'tiny', 'compact' and 'full' templates
- [feature] Displaying digital content information
- [feature] Displaying list of DRMs and platforms
- [feature] Displaying list of payment methods
- [feature] Opening payment interface using Xsolla PayStation Widget
- [feature] Serverless integration
