Fixed bug: Orders never get to the "complete" state

This commit is contained in:
Wouter Samaey 2020-01-06 11:41:53 +01:00
parent 439fa17742
commit 45bd81ebae

View File

@ -95,7 +95,7 @@ class BTCPay extends AbstractMethod {
* @return \Storefront\PayIngenico\Model\Payment\PaymentAbstract
*/
public function initialize($paymentAction, $stateObject) {
$stateObject->setState(\Magento\Sales\Model\Order::STATE_PENDING_PAYMENT)->setStatus(\Magento\Sales\Model\Order::STATE_PENDING_PAYMENT);
$stateObject->setState(\Magento\Sales\Model\Order::STATE_NEW)->setStatus(\Magento\Sales\Model\Order::STATE_PENDING_PAYMENT);
$message = __('Customer is forwarded to BTCPay Server to pay. Awaiting feedback.');