Skip to content

Commit

Permalink
Merge pull request #52 from xsolla/PAYMENTS-21153
Browse files Browse the repository at this point in the history
feat [PAYMENTS-21153]: add queryParams field to the widget options
  • Loading branch information
gazaret authored Dec 20, 2024
2 parents 20422bd + cae3ad2 commit c7dc170
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 1.4.0
- [feature] queryParams field in widget options

## 1.3.5
- [fix] .off events now work correctly

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ define(['PATH_TO_WIDGET/embed'], function (XPayStationWidget) {
* **childWindow** — Options for child window that contains Pay Station. Suitable for mobile version
* **target** — The target option specifies where to open the Pay Station window, can be '_blank', '_self', '_parent', default is '_blank'
* **iframeOnly** — Open Pay Station in iframe on all devices
* **queryParams** — Query params to be added to Pay Station url

### Widget API

Expand Down
6 changes: 3 additions & 3 deletions dist/widget.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/widget.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/widget.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xsolla-paystation-widget",
"version": "1.3.5",
"version": "1.4.0",
"description": "PayStation Integration Widget",
"scripts": {
"build": "gulp build",
Expand Down
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.exports = (function () {
return this.config.payment_url;
}

const query = {};
const query = this.config.queryParams || {};
if (this.config.access_token) {
query.access_token = this.config.access_token;
} else {
Expand Down

0 comments on commit c7dc170

Please sign in to comment.