Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4d161f87f1 | ||
|
|
a139593620 | ||
|
|
edaad8e67c | ||
|
|
aeaff44264 |
@ -379,7 +379,8 @@ class BTCPayService
|
||||
break;
|
||||
case BTCPayServerInvoice::STATUS_SETTLED:
|
||||
// 2) Payments are settled (marked or not)
|
||||
$settledStatus = \Magento\Sales\Model\Order::STATE_COMPLETE;
|
||||
$settledStatus = \Magento\Sales\Model\Order::STATE_PROCESSING;
|
||||
|
||||
|
||||
if ($invoice->isOverpaid()) {
|
||||
$order->addCommentToStatusHistory('Payment confirmed: overpaid.', $settledStatus, true);
|
||||
@ -598,7 +599,7 @@ class BTCPayService
|
||||
|
||||
private function getConfigWithoutCache($path, $scope, $scopeId): ?string
|
||||
{
|
||||
$dataCollection = $this->configValueFactory->create()->getCollection();
|
||||
$dataCollection = $this->configCollectionFactory->create();
|
||||
$dataCollection->addFieldToFilter('path', ['like' => $path . '%']);
|
||||
$dataCollection->addFieldToFilter('scope', ['like' => $scope . '%']);
|
||||
$dataCollection->addFieldToFilter('scope_id', ['like' => $scopeId . '%']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user