Compare commits

..

No commits in common. "master" and "2.0.9" have entirely different histories.

3 changed files with 8 additions and 10 deletions

View File

@ -379,8 +379,7 @@ class BTCPayService
break;
case BTCPayServerInvoice::STATUS_SETTLED:
// 2) Payments are settled (marked or not)
$settledStatus = \Magento\Sales\Model\Order::STATE_PROCESSING;
$settledStatus = \Magento\Sales\Model\Order::STATE_COMPLETE;
if ($invoice->isOverpaid()) {
$order->addCommentToStatusHistory('Payment confirmed: overpaid.', $settledStatus, true);
@ -599,7 +598,7 @@ class BTCPayService
private function getConfigWithoutCache($path, $scope, $scopeId): ?string
{
$dataCollection = $this->configCollectionFactory->create();
$dataCollection = $this->configValueFactory->create()->getCollection();
$dataCollection->addFieldToFilter('path', ['like' => $path . '%']);
$dataCollection->addFieldToFilter('scope', ['like' => $scope . '%']);
$dataCollection->addFieldToFilter('scope_id', ['like' => $scopeId . '%']);

View File

@ -1,13 +1,12 @@
# BTCPay Server integration for Magento 2
## Requirements
- BTCPay Server supported versions: >=1.3.0 (including >=2.0.0)
- Magento 2.4.2 or later installation (tested on Community Edition 2.4.6-p6)
- Magento < 2.4 should also work, but is untested
- PHP 8.0 or greater. Tested with PHP 8.2
- Your BTCPay Server must be setup with HTTPS or HTTP using TOR for security
- Magento 2.4.2 or later installation (tested on Community Edition 2.4.2)
- Magento < 2.4 should also work, but is untested.
- PHP 7.2 or greater. Tested with PHP 7.4.
- Your BTCPay Server must be setup with HTTPS or HTTP using TOR for security.
- You need an API key for your user in BTCPay Server (new since module v2.0)
- Single-Store Mode is not supported
- Single-Store Mode is not supported.
## Features
- Allows you to pay with BTCPay Server in Magento 2 stores

View File

@ -20,7 +20,7 @@
"minimum-stability": "dev",
"require": {
"php": ">=7.3",
"btcpayserver\/btcpayserver-greenfield-php": "^2.7"
"btcpayserver\/btcpayserver-greenfield-php": "^2.2"
},
"autoload": {
"files": [