Compare commits

...

61 Commits
v6.2.1 ... 6.x

Author SHA1 Message Date
dependabot[bot]
a7baf9f7a0 Bump actions/cache from 4.3.0 to 5.0.1 in /.github/workflows
Bumps [actions/cache](https://github.com/actions/cache) from 4.3.0 to 5.0.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](0057852bfa...9255dc7a25)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: 5.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-25 17:11:46 +01:00
dependabot[bot]
18af858930 Bump softprops/action-gh-release in /.github/workflows
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.4.2 to 2.5.0.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](5be0e66d93...a06a81a03e)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 2.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 15:06:04 +01:00
dependabot[bot]
1db3592baf Bump zizmorcore/zizmor-action from 0.2.0 to 0.3.0 in /.github/workflows
Bumps [zizmorcore/zizmor-action](https://github.com/zizmorcore/zizmor-action) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/zizmorcore/zizmor-action/releases)
- [Commits](e673c3917a...e639db9933)

---
updated-dependencies:
- dependency-name: zizmorcore/zizmor-action
  dependency-version: 0.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-12 15:05:31 +01:00
BitcoinMitchell
cc2cef162f dev: Fix comments with pinact 2025-11-28 15:09:35 +01:00
BitcoinMitchell
9dc2f2cedd Update validate.yml 2025-11-28 15:09:35 +01:00
BitcoinMitchell
12ea23fd7d Update security.yml 2025-11-28 15:09:35 +01:00
BitcoinMitchell
12bb7e853c dev: Use hash for actions/checkout 2025-11-28 15:09:35 +01:00
dependabot[bot]
df87beb4e3 Bump actions/checkout from 5.0.0 to 6.0.0 in /.github/workflows
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 6.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-28 15:09:35 +01:00
BitcoinMitchell
bf71d966a6 dev: Set cooldown for dependabot 2025-11-28 15:01:40 +01:00
BitcoinMitchell
cb98dafc12 dev: Lockdown pipelines 2025-11-28 15:01:40 +01:00
dependabot[bot]
411ff22a98 Bump actions/checkout from 5 to 6 in /.github/workflows
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-21 15:20:28 +01:00
dependabot[bot]
f9e10eddbe Bump dealerdirect/phpcodesniffer-composer-installer from 1.1.2 to 1.2.0
Bumps [dealerdirect/phpcodesniffer-composer-installer](https://github.com/PHPCSStandards/composer-installer) from 1.1.2 to 1.2.0.
- [Release notes](https://github.com/PHPCSStandards/composer-installer/releases)
- [Changelog](https://github.com/PHPCSStandards/composer-installer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/composer-installer/compare/v1.1.2...v1.2.0)

---
updated-dependencies:
- dependency-name: dealerdirect/phpcodesniffer-composer-installer
  dependency-version: 1.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-21 15:17:33 +01:00
dependabot[bot]
bd5100461c Bump symfony/http-foundation from 5.4.46 to 5.4.50 in /modules/btcpay
Bumps [symfony/http-foundation](https://github.com/symfony/http-foundation) from 5.4.46 to 5.4.50.
- [Release notes](https://github.com/symfony/http-foundation/releases)
- [Changelog](https://github.com/symfony/http-foundation/blob/7.3/CHANGELOG.md)
- [Commits](https://github.com/symfony/http-foundation/compare/v5.4.46...v5.4.50)

---
updated-dependencies:
- dependency-name: symfony/http-foundation
  dependency-version: 5.4.50
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-21 15:16:51 +01:00
dependabot[bot]
5caa02768c Bump composer/semver from 3.4.3 to 3.4.4 in /modules/btcpay
Bumps [composer/semver](https://github.com/composer/semver) from 3.4.3 to 3.4.4.
- [Release notes](https://github.com/composer/semver/releases)
- [Changelog](https://github.com/composer/semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/composer/semver/compare/3.4.3...3.4.4)

---
updated-dependencies:
- dependency-name: composer/semver
  dependency-version: 3.4.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-21 15:09:26 +01:00
dependabot[bot]
bc4a5744e8 Bump ergebnis/composer-normalize in /modules/btcpay
Bumps [ergebnis/composer-normalize](https://github.com/ergebnis/composer-normalize) from 2.45.0 to 2.48.2.
- [Release notes](https://github.com/ergebnis/composer-normalize/releases)
- [Changelog](https://github.com/ergebnis/composer-normalize/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ergebnis/composer-normalize/compare/2.45.0...2.48.2)

---
updated-dependencies:
- dependency-name: ergebnis/composer-normalize
  dependency-version: 2.48.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-21 15:06:26 +01:00
dependabot[bot]
27a97c56b1 Bump stechstudio/backoff from 1.5 to 1.6 in /modules/btcpay
Bumps [stechstudio/backoff](https://github.com/stechstudio/backoff) from 1.5 to 1.6.
- [Release notes](https://github.com/stechstudio/backoff/releases)
- [Commits](https://github.com/stechstudio/backoff/compare/1.5...1.6)

---
updated-dependencies:
- dependency-name: stechstudio/backoff
  dependency-version: '1.6'
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-21 15:06:13 +01:00
BitcoinMitchell
0a15854dab
Update validate.yml (#204) 2025-09-22 11:28:17 +02:00
BitcoinMitchell
1bf5e7ce81 Prepare for v6.3.1
Some checks failed
Release / Release a new ZIP (push) Has been cancelled
2025-09-19 10:09:41 +02:00
BitcoinMitchell
55b3fcf3c8 fix: Ensure currency is properly displayed when using BTCPay Server v2 2025-09-19 10:09:41 +02:00
BitcoinMitchell
bf39f3d622 fix: Ensure icons work on PS 9 2025-09-19 10:09:41 +02:00
BitcoinMitchell
466a38f7c1 fix: Only call parent::__construct(); for PS 8.0 2025-09-19 10:09:41 +02:00
BitcoinMitchell
1dd151bcf2 fix: redirectLink is deprecated 2025-09-19 10:09:41 +02:00
BitcoinMitchell
a2609ff54c fix: Actually log error when caught 2025-09-19 10:09:41 +02:00
dependabot[bot]
f47b9964da Bump actions/checkout from 4 to 5 in /.github/workflows
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-16 21:24:45 +02:00
dependabot[bot]
fd891f545e Bump dealerdirect/phpcodesniffer-composer-installer from 1.1.0 to 1.1.2
Bumps [dealerdirect/phpcodesniffer-composer-installer](https://github.com/PHPCSStandards/composer-installer) from 1.1.0 to 1.1.2.
- [Release notes](https://github.com/PHPCSStandards/composer-installer/releases)
- [Changelog](https://github.com/PHPCSStandards/composer-installer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/composer-installer/compare/v1.1.0...v1.1.2)

---
updated-dependencies:
- dependency-name: dealerdirect/phpcodesniffer-composer-installer
  dependency-version: 1.1.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-16 21:22:46 +02:00
dependabot[bot]
ed50d43628 Bump phpoffice/phpspreadsheet from 1.29.9 to 1.30.0
Bumps [phpoffice/phpspreadsheet](https://github.com/PHPOffice/PhpSpreadsheet) from 1.29.9 to 1.30.0.
- [Release notes](https://github.com/PHPOffice/PhpSpreadsheet/releases)
- [Changelog](https://github.com/PHPOffice/PhpSpreadsheet/blob/1.30.0/CHANGELOG.md)
- [Commits](https://github.com/PHPOffice/PhpSpreadsheet/compare/1.29.9...1.30.0)

---
updated-dependencies:
- dependency-name: phpoffice/phpspreadsheet
  dependency-version: 1.30.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-16 21:19:55 +02:00
dependabot[bot]
0253f05742 Bump ergebnis/composer-normalize from 2.47.0 to 2.48.2
Bumps [ergebnis/composer-normalize](https://github.com/ergebnis/composer-normalize) from 2.47.0 to 2.48.2.
- [Release notes](https://github.com/ergebnis/composer-normalize/releases)
- [Changelog](https://github.com/ergebnis/composer-normalize/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ergebnis/composer-normalize/compare/2.47.0...2.48.2)

---
updated-dependencies:
- dependency-name: ergebnis/composer-normalize
  dependency-version: 2.48.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-16 21:18:03 +02:00
dependabot[bot]
599a382869 Bump dealerdirect/phpcodesniffer-composer-installer from 1.0.0 to 1.1.0
Bumps [dealerdirect/phpcodesniffer-composer-installer](https://github.com/PHPCSStandards/composer-installer) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/PHPCSStandards/composer-installer/releases)
- [Changelog](https://github.com/PHPCSStandards/composer-installer/blob/main/.github_changelog_generator)
- [Commits](https://github.com/PHPCSStandards/composer-installer/compare/v1.0.0...v1.1.0)

---
updated-dependencies:
- dependency-name: dealerdirect/phpcodesniffer-composer-installer
  dependency-version: 1.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-30 12:50:14 +02:00
dependabot[bot]
651e3eaff5 Bump squizlabs/php_codesniffer from 3.13.1 to 3.13.2
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 3.13.1 to 3.13.2.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.13.1...3.13.2)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-version: 3.13.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-30 12:48:58 +02:00
dependabot[bot]
7af60e0ed6 Bump squizlabs/php_codesniffer from 3.13.0 to 3.13.1
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 3.13.0 to 3.13.1.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.13.0...3.13.1)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-version: 3.13.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-13 15:24:37 +02:00
dependabot[bot]
d6030dc3df Bump squizlabs/php_codesniffer from 3.12.2 to 3.13.0
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 3.12.2 to 3.13.0.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.12.2...3.13.0)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-version: 3.13.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-12 16:02:02 +02:00
dependabot[bot]
f9d6f2fd7a Bump ergebnis/composer-normalize from 2.46.0 to 2.47.0
Bumps [ergebnis/composer-normalize](https://github.com/ergebnis/composer-normalize) from 2.46.0 to 2.47.0.
- [Release notes](https://github.com/ergebnis/composer-normalize/releases)
- [Changelog](https://github.com/ergebnis/composer-normalize/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ergebnis/composer-normalize/compare/2.46.0...2.47.0)

---
updated-dependencies:
- dependency-name: ergebnis/composer-normalize
  dependency-version: 2.47.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-15 16:03:51 +02:00
dependabot[bot]
b5d3a66ccc Bump squizlabs/php_codesniffer from 3.12.1 to 3.12.2
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 3.12.1 to 3.12.2.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.12.1...3.12.2)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-version: 3.12.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 15:41:45 +02:00
dependabot[bot]
ac3d652500 Bump ergebnis/composer-normalize from 2.45.0 to 2.46.0
Bumps [ergebnis/composer-normalize](https://github.com/ergebnis/composer-normalize) from 2.45.0 to 2.46.0.
- [Release notes](https://github.com/ergebnis/composer-normalize/releases)
- [Changelog](https://github.com/ergebnis/composer-normalize/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ergebnis/composer-normalize/compare/2.45.0...2.46.0)

---
updated-dependencies:
- dependency-name: ergebnis/composer-normalize
  dependency-version: 2.46.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-14 10:16:48 +02:00
dependabot[bot]
c0d91bee7c Bump squizlabs/php_codesniffer from 3.12.0 to 3.12.1
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 3.12.0 to 3.12.1.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.12.0...3.12.1)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-version: 3.12.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-08 12:22:16 +02:00
dependabot[bot]
e7c39dc951 Bump squizlabs/php_codesniffer from 3.11.3 to 3.12.0
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 3.11.3 to 3.12.0.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.11.3...3.12.0)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-18 15:00:13 +01:00
dependabot[bot]
05dbfcd026 Bump stechstudio/backoff from 1.4 to 1.5 in /modules/btcpay
Bumps [stechstudio/backoff](https://github.com/stechstudio/backoff) from 1.4 to 1.5.
- [Release notes](https://github.com/stechstudio/backoff/releases)
- [Commits](https://github.com/stechstudio/backoff/compare/1.4...1.5)

---
updated-dependencies:
- dependency-name: stechstudio/backoff
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 14:35:58 +01:00
dependabot[bot]
cdaa853138 Bump phpoffice/phpspreadsheet from 1.29.8 to 1.29.9
Bumps [phpoffice/phpspreadsheet](https://github.com/PHPOffice/PhpSpreadsheet) from 1.29.8 to 1.29.9.
- [Release notes](https://github.com/PHPOffice/PhpSpreadsheet/releases)
- [Changelog](https://github.com/PHPOffice/PhpSpreadsheet/blob/1.29.9/CHANGELOG.md)
- [Commits](https://github.com/PHPOffice/PhpSpreadsheet/compare/1.29.8...1.29.9)

---
updated-dependencies:
- dependency-name: phpoffice/phpspreadsheet
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-03 18:06:48 +01:00
dependabot[bot]
2c2bfcc456 Bump phpoffice/phpspreadsheet from 1.29.7 to 1.29.8
Bumps [phpoffice/phpspreadsheet](https://github.com/PHPOffice/PhpSpreadsheet) from 1.29.7 to 1.29.8.
- [Release notes](https://github.com/PHPOffice/PhpSpreadsheet/releases)
- [Changelog](https://github.com/PHPOffice/PhpSpreadsheet/blob/1.29.8/CHANGELOG.md)
- [Commits](https://github.com/PHPOffice/PhpSpreadsheet/compare/1.29.7...1.29.8)

---
updated-dependencies:
- dependency-name: phpoffice/phpspreadsheet
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 17:05:46 +01:00
dependabot[bot]
27f6f6939f Bump squizlabs/php_codesniffer from 3.11.2 to 3.11.3
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 3.11.2 to 3.11.3.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.11.2...3.11.3)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-27 17:03:32 +01:00
BitcoinMitchell
fcb52555aa Updated to 2025 2025-01-03 19:39:56 +01:00
dependabot[bot]
a81a5463a0 Bump phpoffice/phpspreadsheet from 1.29.4 to 1.29.7
Bumps [phpoffice/phpspreadsheet](https://github.com/PHPOffice/PhpSpreadsheet) from 1.29.4 to 1.29.7.
- [Release notes](https://github.com/PHPOffice/PhpSpreadsheet/releases)
- [Changelog](https://github.com/PHPOffice/PhpSpreadsheet/blob/1.29.7/CHANGELOG.md)
- [Commits](https://github.com/PHPOffice/PhpSpreadsheet/compare/1.29.4...1.29.7)

---
updated-dependencies:
- dependency-name: phpoffice/phpspreadsheet
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-03 19:29:25 +01:00
dependabot[bot]
3350cd7d22 Bump squizlabs/php_codesniffer from 3.11.1 to 3.11.2
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 3.11.1 to 3.11.2.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.11.1...3.11.2)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-27 21:08:31 +01:00
dependabot[bot]
e82faa3163 Bump tecnickcom/tcpdf from 6.7.7 to 6.8.0
Bumps [tecnickcom/tcpdf](https://github.com/tecnickcom/TCPDF) from 6.7.7 to 6.8.0.
- [Changelog](https://github.com/tecnickcom/TCPDF/blob/main/CHANGELOG.TXT)
- [Commits](https://github.com/tecnickcom/TCPDF/compare/6.7.7...6.8.0)

---
updated-dependencies:
- dependency-name: tecnickcom/tcpdf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-27 21:07:22 +01:00
dependabot[bot]
5fda99976f Bump ergebnis/composer-normalize from 2.44.0 to 2.45.0
Bumps [ergebnis/composer-normalize](https://github.com/ergebnis/composer-normalize) from 2.44.0 to 2.45.0.
- [Release notes](https://github.com/ergebnis/composer-normalize/releases)
- [Changelog](https://github.com/ergebnis/composer-normalize/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ergebnis/composer-normalize/compare/2.44.0...2.45.0)

---
updated-dependencies:
- dependency-name: ergebnis/composer-normalize
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-05 15:57:22 +01:00
dependabot[bot]
56f204d744 Bump ergebnis/composer-normalize in /modules/btcpay
Bumps [ergebnis/composer-normalize](https://github.com/ergebnis/composer-normalize) from 2.44.0 to 2.45.0.
- [Release notes](https://github.com/ergebnis/composer-normalize/releases)
- [Changelog](https://github.com/ergebnis/composer-normalize/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ergebnis/composer-normalize/compare/2.44.0...2.45.0)

---
updated-dependencies:
- dependency-name: ergebnis/composer-normalize
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-05 15:55:07 +01:00
dependabot[bot]
fef984c483 Bump tecnickcom/tcpdf from 6.7.5 to 6.7.7
Bumps [tecnickcom/tcpdf](https://github.com/tecnickcom/TCPDF) from 6.7.5 to 6.7.7.
- [Changelog](https://github.com/tecnickcom/TCPDF/blob/main/CHANGELOG.TXT)
- [Commits](https://github.com/tecnickcom/TCPDF/compare/6.7.5...6.7.7)

---
updated-dependencies:
- dependency-name: tecnickcom/tcpdf
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-27 15:01:09 +01:00
BitcoinMitchell
0142dd0c4d Ensure BTCPayServer 2.0 compatibility
Some checks failed
Release / Release a new ZIP (push) Has been cancelled
2024-11-25 15:52:36 +01:00
dependabot[bot]
712219bd23 Bump btcpayserver/btcpayserver-greenfield-php in /modules/btcpay
Bumps [btcpayserver/btcpayserver-greenfield-php](https://github.com/btcpayserver/btcpayserver-greenfield-php) from 2.8.0 to 2.8.1.
- [Release notes](https://github.com/btcpayserver/btcpayserver-greenfield-php/releases)
- [Commits](https://github.com/btcpayserver/btcpayserver-greenfield-php/compare/v2.8.0...v2.8.1)

---
updated-dependencies:
- dependency-name: btcpayserver/btcpayserver-greenfield-php
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-25 15:17:38 +01:00
dependabot[bot]
b2ebded790 Bump phpoffice/phpspreadsheet from 1.29.2 to 1.29.4
Bumps [phpoffice/phpspreadsheet](https://github.com/PHPOffice/PhpSpreadsheet) from 1.29.2 to 1.29.4.
- [Release notes](https://github.com/PHPOffice/PhpSpreadsheet/releases)
- [Changelog](https://github.com/PHPOffice/PhpSpreadsheet/blob/1.29.4/CHANGELOG.md)
- [Commits](https://github.com/PHPOffice/PhpSpreadsheet/compare/1.29.2...1.29.4)

---
updated-dependencies:
- dependency-name: phpoffice/phpspreadsheet
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-18 21:45:47 +01:00
dependabot[bot]
d30a0b205b Bump squizlabs/php_codesniffer from 3.11.0 to 3.11.1
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 3.11.0 to 3.11.1.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.11.0...3.11.1)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-18 21:40:36 +01:00
dependabot[bot]
218427da0b Bump squizlabs/php_codesniffer from 3.10.3 to 3.11.0
Bumps [squizlabs/php_codesniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) from 3.10.3 to 3.11.0.
- [Release notes](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases)
- [Changelog](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.10.3...3.11.0)

---
updated-dependencies:
- dependency-name: squizlabs/php_codesniffer
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-13 10:04:07 +01:00
BitcoinMitchell
48c26171ba Updated README.md 2024-11-08 20:36:43 +01:00
BitcoinMitchell
29cad33c1b Delete .github/workflows/dependencies.yml
Local PHP Security Checker is outdated. Will replace with different check later
2024-11-06 22:11:07 +01:00
dependabot[bot]
2a3ea675b5 Bump btcpayserver/btcpayserver-greenfield-php in /modules/btcpay
Bumps [btcpayserver/btcpayserver-greenfield-php](https://github.com/btcpayserver/btcpayserver-greenfield-php) from 2.7.1 to 2.8.0.
- [Release notes](https://github.com/btcpayserver/btcpayserver-greenfield-php/releases)
- [Commits](https://github.com/btcpayserver/btcpayserver-greenfield-php/compare/v2.7.1...v2.8.0)

---
updated-dependencies:
- dependency-name: btcpayserver/btcpayserver-greenfield-php
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-06 21:50:48 +01:00
dependabot[bot]
51177d0ca9 Bump twig/twig from 3.11.1 to 3.11.2
Bumps [twig/twig](https://github.com/twigphp/Twig) from 3.11.1 to 3.11.2.
- [Changelog](https://github.com/twigphp/Twig/blob/v3.11.2/CHANGELOG)
- [Commits](https://github.com/twigphp/Twig/compare/v3.11.1...v3.11.2)

---
updated-dependencies:
- dependency-name: twig/twig
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-06 21:50:37 +01:00
dependabot[bot]
895fe2a450 Bump twig/twig from 3.11.1 to 3.11.2 in /modules/btcpay
Bumps [twig/twig](https://github.com/twigphp/Twig) from 3.11.1 to 3.11.2.
- [Changelog](https://github.com/twigphp/Twig/blob/v3.11.2/CHANGELOG)
- [Commits](https://github.com/twigphp/Twig/compare/v3.11.1...v3.11.2)

---
updated-dependencies:
- dependency-name: twig/twig
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-06 21:50:30 +01:00
dependabot[bot]
07e4112ebf Bump symfony/http-foundation from 5.4.42 to 5.4.46 in /modules/btcpay
Bumps [symfony/http-foundation](https://github.com/symfony/http-foundation) from 5.4.42 to 5.4.46.
- [Release notes](https://github.com/symfony/http-foundation/releases)
- [Changelog](https://github.com/symfony/http-foundation/blob/7.1/CHANGELOG.md)
- [Commits](https://github.com/symfony/http-foundation/compare/v5.4.42...v5.4.46)

---
updated-dependencies:
- dependency-name: symfony/http-foundation
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-06 21:50:21 +01:00
dependabot[bot]
35b1a0bbea Bump ergebnis/composer-normalize from 2.43.0 to 2.44.0
Bumps [ergebnis/composer-normalize](https://github.com/ergebnis/composer-normalize) from 2.43.0 to 2.44.0.
- [Release notes](https://github.com/ergebnis/composer-normalize/releases)
- [Changelog](https://github.com/ergebnis/composer-normalize/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ergebnis/composer-normalize/compare/2.43.0...2.44.0)

---
updated-dependencies:
- dependency-name: ergebnis/composer-normalize
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-07 17:24:30 +02:00
dependabot[bot]
9f0ecff2f8 Bump ergebnis/composer-normalize in /modules/btcpay
Bumps [ergebnis/composer-normalize](https://github.com/ergebnis/composer-normalize) from 2.43.0 to 2.44.0.
- [Release notes](https://github.com/ergebnis/composer-normalize/releases)
- [Changelog](https://github.com/ergebnis/composer-normalize/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ergebnis/composer-normalize/compare/2.43.0...2.44.0)

---
updated-dependencies:
- dependency-name: ergebnis/composer-normalize
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-07 17:23:04 +02:00
dependabot[bot]
f550891a60 Bump phpoffice/phpspreadsheet from 1.29.1 to 1.29.2
Bumps [phpoffice/phpspreadsheet](https://github.com/PHPOffice/PhpSpreadsheet) from 1.29.1 to 1.29.2.
- [Release notes](https://github.com/PHPOffice/PhpSpreadsheet/releases)
- [Changelog](https://github.com/PHPOffice/PhpSpreadsheet/blob/1.29.2/CHANGELOG.md)
- [Commits](https://github.com/PHPOffice/PhpSpreadsheet/compare/1.29.1...1.29.2)

---
updated-dependencies:
- dependency-name: phpoffice/phpspreadsheet
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-07 17:21:03 +02:00
18 changed files with 1023 additions and 874 deletions

View File

@ -5,6 +5,8 @@ updates:
directory: /
schedule:
interval: daily
cooldown:
default-days: 7
open-pull-requests-limit: 5
reviewers:
- BitcoinMitchell
@ -16,6 +18,8 @@ updates:
directory: /modules/btcpay
schedule:
interval: daily
cooldown:
default-days: 7
open-pull-requests-limit: 5
reviewers:
- BitcoinMitchell
@ -27,6 +31,8 @@ updates:
directory: "/.github/workflows"
schedule:
interval: daily
cooldown:
default-days: 7
open-pull-requests-limit: 5
reviewers:
- BitcoinMitchell

View File

@ -1,49 +0,0 @@
name: "Dependencies"
on: [ "pull_request" ]
jobs:
security:
name: "Local PHP Security Checker (PHP ${{ matrix.php-versions }})"
runs-on: "ubuntu-latest"
strategy:
matrix:
php-versions: [ '8.0', '8.1' ]
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Setup PHP, with composer and extensions"
uses: "shivammathur/setup-php@v2"
with:
php-version: "${{ matrix.php-versions }}"
extensions: "mbstring, xml, ctype, iconv, intl, gd"
tools: "composer:v2"
- name: "Get composer cache directory"
id: "composer-cache"
run: 'echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT'
- name: "Cache composer dependencies"
uses: "actions/cache@v4"
with:
path: "${{ steps.composer-cache.outputs.dir }}"
key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: "${{ runner.os }}-composer-"
- name: "Validate composer"
run: "composer validate"
- name: "Install all dependencies"
run: "make install"
- uses: "actions/cache@v4"
with:
path: "~/.cache/local-php-security-checker"
key: "local-php-security-checker-cache"
# Ensure our dependencies are fine
- name: "Local PHP Security Checker"
uses: "docker://pplotka/local-php-security-checker-github-actions:v1.0.0"
with:
cache_dir: "~/.cache/local-php-security-checker"
path: "./composer.lock"
- name: "Local PHP Security Checker - Module"
uses: "docker://pplotka/local-php-security-checker-github-actions:v1.0.0"
with:
cache_dir: "~/.cache/local-php-security-checker"
path: "./modules/btcpay/composer.lock"

View File

@ -4,15 +4,19 @@ on:
push:
tags: [ 'v*' ] # Push events to matching v*, i.e. v1.0, v20.15.10
permissions: {}
jobs:
linting:
name: "Release a new ZIP"
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
uses: "actions/checkout@c2d88d3ecc89a9ef08eebf45d9637801dcee7eb5" # v6.0.0
with:
persist-credentials: false
- name: "Setup PHP, with composer and extensions"
uses: "shivammathur/setup-php@v2" # https://github.com/shivammathur/setup-php
uses: "shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1" # v2.36.0
with:
php-version: "8.0"
extensions: "mbstring, xml, ctype, iconv, intl, gd"
@ -21,11 +25,12 @@ jobs:
id: "composer-cache"
run: 'echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT'
- name: "Cache composer dependencies"
uses: "actions/cache@v4"
uses: "actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb" # v5.0.1
with:
path: "${{ steps.composer-cache.outputs.dir }}"
key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: "${{ runner.os }}-composer-"
lookup-only: true
- name: "Validate composer"
run: "composer validate"
- name: "Install Composer dependencies"
@ -38,7 +43,7 @@ jobs:
# Make a release from the tag and upload the zip
- name: "Create Release"
id: "create_release"
uses: "softprops/action-gh-release@v2"
uses: "softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b" # v2.5.0
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:

26
.github/workflows/security.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: GitHub Actions Security Analysis with zizmor 🌈
on:
push:
branches: ["main"]
pull_request:
branches: ["**"]
permissions: {}
jobs:
zizmor:
name: Run zizmor 🌈
runs-on: ubuntu-latest
permissions:
security-events: write
contents: read # only needed for private repos
actions: read # only needed for private repos
steps:
- name: Checkout repository
uses: actions/checkout@c2d88d3ecc89a9ef08eebf45d9637801dcee7eb5 # v6.0.0
with:
persist-credentials: false
- name: Run zizmor 🌈
uses: zizmorcore/zizmor-action@e639db99335bc9038abc0e066dfcd72e23d26fb4 # v0.3.0

View File

@ -1,6 +1,14 @@
name: "Validate"
on: [ "pull_request" ]
on:
push:
paths: [ 'modules/**' ]
branches: [ '6.x' ]
tags: [ 'v*' ]
pull_request:
paths: [ 'modules/**' ]
permissions: {}
jobs:
linting:
@ -11,9 +19,11 @@ jobs:
php-versions: [ '8.0', '8.1' ]
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
uses: "actions/checkout@c2d88d3ecc89a9ef08eebf45d9637801dcee7eb5" # v6.0.0
with:
persist-credentials: false
- name: "Setup PHP, with composer and extensions"
uses: "shivammathur/setup-php@v2" # https://github.com/shivammathur/setup-php
uses: "shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1" # v2.36.0
with:
php-version: "${{ matrix.php-versions }}"
extensions: "mbstring, xml, ctype, iconv, intl, gd"
@ -22,11 +32,12 @@ jobs:
id: "composer-cache"
run: 'echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT'
- name: "Cache composer dependencies"
uses: "actions/cache@v4"
uses: "actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb" # v5.0.1
with:
path: "${{ steps.composer-cache.outputs.dir }}"
key: "${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}"
restore-keys: "${{ runner.os }}-composer-"
lookup-only: true
- name: "Validate composer"
run: "composer validate"
- name: "Install Composer dependencies"

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2017-2024 btcpayserver
Copyright (c) 2017-2025 btcpayserver
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -8,7 +8,7 @@
<div align="center">
<p>
<a href="https://github.com/btcpayserver/prestashop-plugin/pulse"><img src="https://img.shields.io/maintenance/yes/2024?style=flat-square" alt="Maintained"/></a>
<a href="https://github.com/btcpayserver/prestashop-plugin/pulse"><img src="https://img.shields.io/maintenance/yes/2025?style=flat-square" alt="Maintained"/></a>
<a href="https://github.com/btcpayserver/prestashop-plugin/actions"><img src="https://img.shields.io/github/actions/workflow/status/btcpayserver/prestashop-plugin/validate.yml?style=flat-square" alt="GitHub Workflow Status"/></a>
<a href="https://github.com/btcpayserver/prestashop-plugin/blob/6.x/LICENSE"><img src="https://img.shields.io/github/license/btcpayserver/prestashop-plugin?color=brightgreen&amp;style=flat-square" alt="GitHub License"/></a>
<a href="https://github.com/btcpayserver/prestashop-plugin#contributing"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square" alt="PRs are welcome"/></a>
@ -41,7 +41,7 @@
Please ensure that you meet the following requirements before installing this plugin.
- You are using PHP 8.0 or higher
- Your PrestaShop is version 8.0 or higher.
- Your PrestaShop is version 8.0/9.0 or higher.
- Your BTCPay Server is version 1.7.0 or higher
- The PDO, curl, gd, intl, json, and mbstring PHP extensions are available
- You have a BTCPay Server, either [self-hosted](https://docs.btcpayserver.org/Deployment/) or [hosted by a third party](https://docs.btcpayserver.org/Deployment/ThirdPartyHosting/)
@ -50,9 +50,9 @@ Please ensure that you meet the following requirements before installing this pl
- [You've a wallet connected to your store](https://docs.btcpayserver.org/WalletSetup)
### Tested successfully
- Prestashop v8.0, v8.0.1, v8.0.4, v8.1.0, v8.1.3 and v8.1.4
- BTCPay server v1.7.0, v1.7.3.0, v1.12.5, v1.13.0 and v1.13.5
- BTCPay server v2 should be supported as of module version v6.2.0.
- Prestashop v8.0, v8.0.1, v8.0.4, v8.1.0, v8.1.3, v8.1.4, v8.2.1, v9.0.0
- BTCPay server v1.7.0, v1.7.3.0, v1.12.5, v1.13.0, v1.13.5, v2.1.5, v2.2.1
- BTCPay server v2 is supported as of module version v6.3.0.
### Multistore
@ -78,6 +78,10 @@ BTCPay Server is built and maintained entirely by volunteer contributors around
Contributors looking to help out, before opening a pull request, please join [our community chat](https://chat.btcpayserver.org/) or [start a GitHub discussion](https://github.com/btcpayserver/btcpayserver/discussions) to get early feedback, discuss the best ways to tackle the problem, and ensure there is no work duplication.
### 🔧 Development
We recommend using [PrestaShop Kickstarter](https://github.com/PrestaShopCorp/docker-compose-kickstarter) (which supports [ngrok](https://ngrok.com/)) and a dockerized [BTCPay Server instance](https://github.com/btcpayserver/btcpayserver-docker/blob/master/Production/docker-compose.btc.yml) (or [an online testnet instance](https://testnet.demo.btcpayserver.org/)) for testing locally.
## 🏪 PrestaShop Support
PrestaShop support can be found through its official channels.

774
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,153 +0,0 @@
version: '3'
services:
btcpayserver:
container_name: prestashop_btcpayserver
environment:
BTCPAY_POSTGRES: >-
User ID=postgres;Host=postgres;Port=5432;Application
Name=btcpayserver;Database=btcpayserverregtest
BTCPAY_EXPLORERPOSTGRES: >-
User ID=postgres;Host=postgres;Port=5432;Application
Name=btcpayserver;MaxPoolSize=80;Database=nbxplorerregtest
BTCPAY_NETWORK: regtest
BTCPAY_BIND: '0.0.0.0:49392'
BTCPAY_ROOTPATH: /
BTCPAY_DEBUGLOG: btcpay.log
BTCPAY_UPDATEURL: 'https://api.github.com/repos/btcpayserver/btcpayserver/releases/latest'
BTCPAY_DOCKERDEPLOYMENT: 'true'
BTCPAY_CHAINS: btc
BTCPAY_BTCEXPLORERURL: 'http://nbxplorer:32838/'
expose:
- '49392'
image: 'btcpayserver/btcpayserver:1.13.0'
links:
- postgres
ports:
- '49392:49392'
volumes:
- 'btcpay_datadir:/datadir'
- 'nbxplorer_datadir:/root/.nbxplorer'
- 'btcpay_pluginsdir:/root/.btcpayserver/Plugins'
bitcoind:
container_name: prestashop_bitcoind
environment:
BITCOIN_NETWORK: regtest
BITCOIN_WALLETDIR: /walletdata
BITCOIN_EXTRA_ARGS: |
rpcport=43782
rpcbind=0.0.0.0:43782
rpcallowip=0.0.0.0/0
port=39388
whitelist=0.0.0.0/0
maxmempool=500
prune=50000
mempoolfullrbf=1
expose:
- '43782'
- '39388'
image: 'btcpayserver/bitcoin:26.0'
ports:
- '18443:43782'
volumes:
- 'bitcoin_datadir:/data'
- 'bitcoin_wallet_datadir:/walletdata'
nbxplorer:
container_name: prestashop_nbxplorer
environment:
NBXPLORER_NETWORK: regtest
NBXPLORER_BIND: '0.0.0.0:32838'
NBXPLORER_TRIMEVENTS: 10000
NBXPLORER_SIGNALFILESDIR: /datadir
NBXPLORER_POSTGRES: >-
User ID=postgres;Host=postgres;Port=5432;Application
Name=nbxplorer;MaxPoolSize=20;Database=nbxplorerregtest
NBXPLORER_AUTOMIGRATE: 1
NBXPLORER_NOMIGRATEEVTS: 1
NBXPLORER_DELETEAFTERMIGRATION: 1
NBXPLORER_CHAINS: btc
NBXPLORER_BTCRPCURL: 'http://bitcoind:43782/'
NBXPLORER_BTCNODEENDPOINT: 'bitcoind:39388'
expose:
- '32838'
image: 'nicolasdorier/nbxplorer:2.5.2'
links:
- postgres
volumes:
- 'nbxplorer_datadir:/datadir'
- 'bitcoin_datadir:/root/.bitcoin'
postgres:
command:
- '-c'
- random_page_cost=1.0
- '-c'
- shared_preload_libraries=pg_stat_statements
container_name: prestashop_postgres
environment:
POSTGRES_HOST_AUTH_METHOD: trust
image: 'btcpayserver/postgres:13.13'
shm_size: 256mb
volumes:
- 'postgres_datadir:/var/lib/postgresql/data'
mariadb:
container_name: prestashop_mariadb
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_SKIP_TEST_DB=yes
- MARIADB_USER=prestashop
- MARIADB_PASSWORD=bitnami
- MARIADB_DATABASE=prestashop
image: 'bitnami/mariadb:11.0'
ports:
- '3305:3306'
volumes:
- 'mariadb_data:/bitnami/mariadb'
prestashop:
container_name: prestashop_prestashop
depends_on:
- mariadb
- btcpayserver
environment:
- PRESTASHOP_HOST=prestashop:8080
- PRESTASHOP_DATABASE_HOST=mariadb
- PRESTASHOP_DATABASE_PORT_NUMBER=3306
- PRESTASHOP_DATABASE_USER=prestashop
- PRESTASHOP_DATABASE_PASSWORD=bitnami
- PRESTASHOP_DATABASE_NAME=prestashop
- PRESTASHOP_EMAIL=user@example.com
- PRESTASHOP_PASSWORD=bitnami1
expose:
- '8080'
- '8443'
image: 'bitnami/prestashop:8.0.4'
links:
- mariadb
- btcpayserver
ports:
- '8080:8080'
- '8443:8443'
volumes:
- 'prestashop_data:/bitnami/prestashop'
mailpit:
container_name: prestashop_mailpit
image: 'axllent/mailpit:latest'
logging:
driver: none
ports:
- '1025:1025'
- '8025:8025'
volumes:
bitcoin_datadir: ~
bitcoin_wallet_datadir: ~
btcpay_datadir: ~
btcpay_pluginsdir: ~
mariadb_data: { driver: local }
nbxplorer_datadir: ~
postgres_datadir: ~
prestashop_data: { driver: local }

View File

@ -52,7 +52,7 @@ class BTCPay extends PaymentModule
{
$this->name = 'btcpay';
$this->tab = 'payments_gateways';
$this->version = '6.2.1';
$this->version = '6.3.1';
$this->author = 'BTCPay Server';
$this->ps_versions_compliancy = ['min' => Constants::MINIMUM_PS_VERSION, 'max' => _PS_VERSION_];
$this->controllers = ['payment', 'validation', 'webhook'];
@ -240,8 +240,12 @@ class BTCPay extends PaymentModule
try {
// Get the invoice and its payments
$invoice = $client->invoice()->getInvoice($storeID, $invoiceId);
$paymentMethods = $client->invoice()->getPaymentMethods($storeID, $invoiceId);
$invoice = $client->invoice()->getInvoice($storeID, $invoiceId);
// Filter out methods without payments
$paymentMethods = array_filter($client->invoice()->getPaymentMethods($storeID, $invoiceId), static function ($method) {
return !empty($method->getPayments());
});
// Has any payment been received
$paymentReceived = array_reduce($paymentMethods, static function ($carry, $method) {
@ -411,12 +415,6 @@ class BTCPay extends PaymentModule
return [];
}
// Prepare smarty
$this->context->smarty->assign([
'onChain' => $client->onChain()->getPaymentMethods($storeID),
'offChain' => $client->offChain()->getPaymentMethods($storeID),
]);
return [
(new PaymentOption())
->setModuleName($this->name)

View File

@ -25,7 +25,7 @@
"ext-intl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"btcpayserver/btcpayserver-greenfield-php": "^2.6.0",
"btcpayserver/btcpayserver-greenfield-php": "^2.8.1",
"composer/semver": "^3.4.2",
"stechstudio/backoff": "^1.4"
},

File diff suppressed because it is too large Load Diff

View File

@ -53,14 +53,16 @@ class BTCPayPaymentModuleFrontController extends ModuleFrontController
try {
if (null !== ($redirect = $this->factory->createPaymentRequest($this->context->customer, $this->context->cart))) {
Tools::redirectLink($redirect);
Tools::redirect($redirect);
return;
}
$this->warning[] = $this->context->getTranslator()->trans('We could not create a payment request via BTCPay Server. Please try again or contact us.', [], 'Modules.Btcpay.Front');
$this->redirectWithNotifications($this->context->link->getPageLink('cart', $this->ssl));
} catch (\Throwable) {
} catch (\Throwable $throwable) {
PrestaShopLogger::addLog(\sprintf('[ERROR] An error occurred during payment creation: %s', $throwable), PrestaShopLogger::LOG_SEVERITY_LEVEL_ERROR, $throwable->getCode());
$this->warning[] = $this->context->getTranslator()->trans('We are having issues with our BTCPay Server backend. Please try again or contact us.', [], 'Modules.Btcpay.Front');
$this->redirectWithNotifications($this->context->link->getPageLink('cart', $this->ssl));
}

View File

@ -62,7 +62,10 @@ class ConfigureController extends FrameworkBundleAdminController
public function __construct(BTCPay $module, ValidatorInterface $validator, FormHandlerInterface $serverFormHandler, FormHandlerInterface $generalFormHandler)
{
parent::__construct();
// Fallback in case 8.0 is used // TODO: Remove once we make 9.0 the minimum
if (\version_compare(\_PS_VERSION_, '8.1.0', '<')) {
parent::__construct();
}
$this->module = $module;
$this->validator = $validator;
@ -296,7 +299,7 @@ class ConfigureController extends FrameworkBundleAdminController
protected function getConfiguration(): ShopConfigurationInterface
{
// Fallback in case 8.0 is used // TODO: Remove once we make 8.1.0 the minimum
// Fallback in case 8.0 is used // TODO: Remove once we make 9.0 the minimum
if (\version_compare(\_PS_VERSION_, '8.1.0', '<')) {
return $this->configuration;
}

View File

@ -10,8 +10,6 @@ use BTCPayServer\Client\Invoice as InvoiceClient;
use BTCPayServer\Client\Server as ServerClient;
use BTCPayServer\Client\Store as StoreClient;
use BTCPayServer\Client\StorePaymentMethod;
use BTCPayServer\Client\StorePaymentMethodLightningNetwork;
use BTCPayServer\Client\StorePaymentMethodOnChain;
use PrestaShop\PrestaShop\Adapter\Configuration;
use PrestaShop\PrestaShop\Core\Domain\Configuration\ShopConfigurationInterface;
@ -46,16 +44,6 @@ class Client extends AbstractClient
*/
private $payment;
/**
* @var StorePaymentMethodOnChain
*/
private $onChain;
/**
* @var StorePaymentMethodLightningNetwork
*/
private $offChain;
/**
* @var Webhook
*/
@ -77,8 +65,6 @@ class Client extends AbstractClient
$this->server = new ServerClient($baseUrl, $apiKey, $httpClient);
$this->store = new StoreClient($baseUrl, $apiKey, $httpClient);
$this->payment = new StorePaymentMethod($baseUrl, $apiKey, $httpClient);
$this->onChain = new StorePaymentMethodOnChain($baseUrl, $apiKey, $httpClient);
$this->offChain = new StorePaymentMethodLightningNetwork($baseUrl, $apiKey, $httpClient);
$this->webhook = new Webhook($baseUrl, $apiKey, $httpClient);
$this->configuration = new Configuration();
@ -127,16 +113,6 @@ class Client extends AbstractClient
return $this->payment;
}
public function onChain(): StorePaymentMethodOnChain
{
return $this->onChain;
}
public function offChain(): StorePaymentMethodLightningNetwork
{
return $this->offChain;
}
public function webhook(): Webhook
{
return $this->webhook;

View File

@ -135,7 +135,6 @@
<div class="card-deck">
<div class="card">
<h3 class="card-header">
<i class="material-icons">store</i>
{{ 'Store Information'|trans({}, 'Admin.Actions') }}
</h3>
@ -164,7 +163,6 @@
<div class="card">
<h3 class="card-header">
<i class="material-icons">info_outline</i>
{{ 'Server Information'|trans({}, 'Admin.Actions') }}
</h3>
@ -176,7 +174,7 @@
{% set webhook = client.webhook().getCurrent(storeId, webhookId) %}
<dt><span class="text-muted mb-0"><strong>{{ 'Webhook'|trans({}, 'Modules.Btcpay.Admin') }}</strong></span></dt>
{% if webhook is not null and webhook.enabled is defined and webhook.enabled %}
<dd><span class="text-success px-1"><i class="material-icons">checkmark</i></span></dd>
<dd><span class="text-success px-1"></span></dd>
{% elseif webhook is not null and webhook.enabled is defined and not webhook.enabled %}
<dd><span class="text-warning px-1">Webhook has been disabled, re-enable it again your store</span></dd>
{% else %}
@ -194,12 +192,9 @@
<dt><span class="text-muted mb-0"><strong>{{ 'Supported payment methods'|trans({}, 'Modules.Btcpay.Front') }}</strong></span></dt>
<dd>
<ul class="list-unstyled px-1">
{% for paymentMethod in client.offChain().getPaymentMethods(storeId) %}
<li>{{ paymentMethod.cryptoCode }} Lightning ⚡</li>
{% endfor %}
{% for paymentMethod in client.onChain().getPaymentMethods(storeId) %}
<li>{{ paymentMethod.cryptoCode }} On-Chain</li>
<ul>
{% for paymentMethod in client.payment().getPaymentMethods(storeId) %}
<li>{{ paymentMethod.cryptoCode }} {% if 'LNURL' in paymentMethod.paymentMethod %}LNURL ⚡{% elseif 'LN' in paymentMethod.paymentMethod or 'Lightning' in paymentMethod.paymentMethod %}Lightning ⚡{% else %}(On-Chain){% endif %}</li>
{% endfor %}
</ul>
</dd>

View File

@ -49,7 +49,7 @@
<div class="nav nav-tabs" id="nav-tab" role="tablist">
{foreach $paymentMethods as $paymentMethod}
{if not empty($paymentMethod->getPayments())}
{assign currencyCode "_"|explode:$paymentMethod.paymentMethod|current}
{assign currencyCode "_"|explode:($paymentMethod.paymentMethod|default:$paymentMethod.currency)|current}
<a class="nav-item nav-link{if $paymentMethod@first} active{/if}" id="nav-{$currencyCode|strtolower|escape:'htmlall':'UTF-8'}-tab" data-toggle="tab" href="#nav-{$currencyCode|strtolower|escape:'htmlall':'UTF-8'}" role="tab" aria-controls="nav-{$currencyCode|strtolower|escape:'htmlall':'UTF-8'}" aria-selected="true">
<strong>{$currencyCode|escape:'htmlall':'UTF-8'}</strong>
</a>
@ -60,48 +60,48 @@
<div class="tab-content" id="nav-tabContent">
{foreach $paymentMethods as $paymentMethod}
{if not empty($paymentMethod->getPayments())}
{assign currencyCode "_"|explode:$paymentMethod.paymentMethod|current}
<div class="tab-pane fade{if $paymentMethod@first} show active{/if}" id="nav-{$currencyCode|strtolower|escape:'htmlall':'UTF-8'}" role="tabpanel" aria-labelledby="nav-{$currencyCode|strtolower|escape:'htmlall':'UTF-8'}-tab">
<table id="{$currencyCode|escape:'htmlall':'UTF-8'}-details" class="table table-bordered my-2">
<thead>
<tr>
<th class="table-head-rate">{l s='Rate' d='Modules.Btcpay.Global'}</th>
<th class="table-head-cart-amount">{l s='Invoice amount' d='Modules.Btcpay.Global'}</th>
<th class="table-head-paid-amount">{l s='Total amount paid in %s' sprintf=[$currencyCode|escape:'htmlall':'UTF-8'] d='Modules.Btcpay.Global'}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{$storeCurrency|escape:'htmlall':'UTF-8'} {$paymentMethod.rate|escape:'htmlall':'UTF-8'}</td>
<td>{$paymentMethod.amount|escape:'htmlall':'UTF-8'} {$paymentMethod.paymentMethod|escape:'htmlall':'UTF-8'}</td>
<td>{$paymentMethod.paymentMethodPaid|escape:'htmlall':'UTF-8'} {$paymentMethod.paymentMethod|escape:'htmlall':'UTF-8'}</td>
</tr>
</tbody>
</table>
<table id="{$currencyCode|escape:'htmlall':'UTF-8'}-payments" class="table table-bordered my-2">
<thead>
<tr>
<th class="table-head-date">{l s='Date' d='Modules.Btcpay.Global'}</th>
<th class="table-head-amount">{l s='Amount' d='Modules.Btcpay.Global'}</th>
<th class="table-head-destination">{l s='Transaction' d='Modules.Btcpay.Global'}</th>
</tr>
</thead>
<tbody>
{foreach $paymentMethod->getPayments() as $payment}
<tr>
<td>{$payment->getReceivedTimestamp()|date_format:"%Y-%m-%d %T"}</td>
<td>{$payment.value|escape:'htmlall':'UTF-8'} {$currencyCode|escape:'htmlall':'UTF-8'}</td>
{if $currencyCode == 'BTC'}
<td><a href="https://mempool.space/tx/{$payment->getTransactionId()|escape:'htmlall':'UTF-8'}" target="_blank" rel="noopener noreferrer nofollow">{$payment->getTransactionId()|escape:'htmlall':'UTF-8'}</a></td>
{else}
<td><a href="https://blockchair.com/search?q={$payment->getTransactionId()|escape:'htmlall':'UTF-8'}" target="_blank" rel="noopener noreferrer nofollow">{$payment->getTransactionId()|escape:'htmlall':'UTF-8'}</a></td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
{assign currencyCode "_"|explode:($paymentMethod.paymentMethod|default:$paymentMethod.currency)|current}
<div class="tab-pane fade{if $paymentMethod@first} show active{/if}" id="nav-{$currencyCode|strtolower|escape:'htmlall':'UTF-8'}" role="tabpanel" aria-labelledby="nav-{$currencyCode|strtolower|escape:'htmlall':'UTF-8'}-tab">
<table id="{$currencyCode|escape:'htmlall':'UTF-8'}-details" class="table table-bordered my-2">
<thead>
<tr>
<th class="table-head-rate">{l s='Rate' d='Modules.Btcpay.Global'}</th>
<th class="table-head-cart-amount">{l s='Invoice amount' d='Modules.Btcpay.Global'}</th>
<th class="table-head-paid-amount">{l s='Total amount paid in %s' sprintf=[$currencyCode|escape:'htmlall':'UTF-8'] d='Modules.Btcpay.Global'}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{$storeCurrency|escape:'htmlall':'UTF-8'} {$paymentMethod.rate|escape:'htmlall':'UTF-8'}</td>
<td>{$paymentMethod.amount|escape:'htmlall':'UTF-8'} {$paymentMethod.paymentMethod|escape:'htmlall':'UTF-8'}</td>
<td>{$paymentMethod.paymentMethodPaid|escape:'htmlall':'UTF-8'} {$paymentMethod.paymentMethod|escape:'htmlall':'UTF-8'}</td>
</tr>
</tbody>
</table>
<table id="{$currencyCode|escape:'htmlall':'UTF-8'}-payments" class="table table-bordered my-2">
<thead>
<tr>
<th class="table-head-date">{l s='Date' d='Modules.Btcpay.Global'}</th>
<th class="table-head-amount">{l s='Amount' d='Modules.Btcpay.Global'}</th>
<th class="table-head-destination">{l s='Transaction' d='Modules.Btcpay.Global'}</th>
</tr>
</thead>
<tbody>
{foreach $paymentMethod->getPayments() as $payment}
<tr>
<td>{$payment->getReceivedTimestamp()|date_format:"%Y-%m-%d %T"}</td>
<td>{$payment.value|escape:'htmlall':'UTF-8'} {$currencyCode|escape:'htmlall':'UTF-8'}</td>
{if $currencyCode == 'BTC'}
<td><a href="https://mempool.space/tx/{$payment->getTransactionId()|escape:'htmlall':'UTF-8'}" target="_blank" rel="noopener noreferrer nofollow">{$payment->getTransactionId()|escape:'htmlall':'UTF-8'}</a></td>
{else}
<td><a href="https://blockchair.com/search?q={$payment->getTransactionId()|escape:'htmlall':'UTF-8'}" target="_blank" rel="noopener noreferrer nofollow">{$payment->getTransactionId()|escape:'htmlall':'UTF-8'}</a></td>
{/if}
</tr>
{/foreach}
</tbody>
</table>
</div>
{/if}
{/foreach}
</div>
{/if}

View File

@ -1,13 +1,3 @@
<section class="mb-2">
<p class="mb-1">{l s='Please pay the exact amount (including transaction fees when paying on-chain).' d='Modules.Btcpay.Front'}</p>
<hr class="mb-1"/>
<p class="mb-1"><strong>{l s='Supported payment methods' d='Modules.Btcpay.Front'}</strong>:</p>
<dl>
{foreach $offChain as $paymentMethod}
<dt>{$paymentMethod.cryptoCode|escape:'htmlall':'UTF-8'} Lightning ⚡</dt>
{/foreach}
{foreach $onChain as $paymentMethod}
<dt>{$paymentMethod.cryptoCode|escape:'htmlall':'UTF-8'} (On-Chain)</dt>
{/foreach}
</dl>
</section>