diff --git a/composer.json b/composer.json index 7c3d102..f254483 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "php": "^7.4 || ^8.0", "sylius/sylius": "~1.9.0 || ~1.10.0 || ~1.11.0 || ~1.12.0 || ~1.13.0", "symfony/messenger": "^4.4 || ^5.2 || ^6.0", - "mollie/mollie-api-php": "^v2.71.0", + "mollie/mollie-api-php": "^v2.73.0", "sylius/refund-plugin": "^1.0", "sylius/admin-order-creation-plugin": "^0.12 || ^0.13 || v0.14 || v0.15.0", "ext-json": "*", diff --git a/src/Payments/Methods/Satispay.php b/src/Payments/Methods/Satispay.php new file mode 100644 index 0000000..74b3ead --- /dev/null +++ b/src/Payments/Methods/Satispay.php @@ -0,0 +1,17 @@ + checkQrCode(url + '?orderId=' + orderId), 1000); } }); @@ -209,7 +213,7 @@ $(function () { showQrCodePopUp(); - function createPopup(qrCode) { + function createPopup(qrCode, qrCodeMethod) { // Create popup container var popupContainer = document.createElement('div'); popupContainer.id = 'popup-container'; @@ -232,7 +236,7 @@ $(function () { var popupContent = document.createElement('div'); popupContent.classList.add('popup-content'); var paragraph = document.createElement('p'); - paragraph.textContent = 'Open your Bancontact app to scan the QR code.'; + paragraph.textContent = 'Open your ' + qrCodeMethod + ' app to scan the QR code.'; var qrCodeImg = document.createElement('img'); qrCodeImg.src = qrCode; qrCodeImg.width = 180; @@ -265,12 +269,12 @@ $(function () { // Add event listeners to buttons cancelButton.addEventListener('click', function (event) { closePopup(); - clearInterval(qrCodeInterval); + window.location.href = 'select-payment'; }); continueButton.addEventListener('click', function (event) { closePopup(); - window.location.href = 'select-payment'; + clearInterval(qrCodeInterval); }); // Append popup container to body