Skip to content

Commit

Permalink
Release 4.0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
vttn committed Oct 12, 2021
1 parent 447bfe6 commit 53e7f92
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 30 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 4.0.13
- Loader Chrome IOS fix

# 4.0.12
- Security fix

# 4.0.11
- Reverted auto-submit on empty iframe as it is not working properly at all cases

Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG_de-DE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 4.0.13
- Loader Chrome IOS beheben

# 4.0.12
- Implementierte Sicherheitskorrektur

# 4.0.11
- Automatisches Senden bei leerem iframe zurückgesetzt, da es nicht in allen Fällen richtig funktioniert

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ tail -f var/log/wallee_payment*.log

## Documentation

[Documentation](https://plugin-documentation.wallee.com/wallee-payment/shopware-6/4.0.12/docs/en/documentation.html)
[Documentation](https://plugin-documentation.wallee.com/wallee-payment/shopware-6/4.0.13/docs/en/documentation.html)

## License

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
"wallee/sdk": "3.0.1"
},
"type": "shopware-platform-plugin",
"version": "4.0.12"
"version": "4.0.13"
}
2 changes: 1 addition & 1 deletion docs/en/documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>Documentation</h2> </div>
</a>
</li>
<li>
<a href="https://github.com/wallee-payment/shopware-6/releases/tag/4.0.12/">
<a href="https://github.com/wallee-payment/shopware-6/releases/tag/4.0.13/">
Source
</a>
</li>
Expand Down
22 changes: 14 additions & 8 deletions src/Resources/public/storefront/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@
}
},

hideLoader: function () {
const loader = document.getElementById(WalleeCheckout.loader_id);
if(loader.parentNode !== null) {
loader.parentNode.removeChild(loader);
}
WalleeCheckout.activateLoader(false);
},

recreateCart: function (e) {
window.location.href = WalleeCheckout.cart_recreate_url;
e.preventDefault();
Expand Down Expand Up @@ -93,21 +101,19 @@
// noinspection JSUnresolvedFunction
WalleeCheckout.handler = window.IframeCheckoutHandler(paymentMethodConfigurationId);
// noinspection JSUnresolvedFunction
WalleeCheckout.handler.setValidationCallback((validationResult) => {
WalleeCheckout.handler.setValidationCallback(function(validationResult){
WalleeCheckout.hideErrors();
WalleeCheckout.validationCallBack(validationResult);
});
WalleeCheckout.handler.setInitializeCallback(() => {
let loader = document.getElementById(WalleeCheckout.loader_id);
loader.parentNode.removeChild(loader);
WalleeCheckout.activateLoader(false);
});
WalleeCheckout.handler.setHeightChangeCallback((height)=>{
WalleeCheckout.handler.setInitializeCallback(WalleeCheckout.hideLoader());
WalleeCheckout.handler.setHeightChangeCallback(function(height){
if(height < 1){ // iframe has no fields
WalleeCheckout.handler.submit();
}
});
WalleeCheckout.handler.create(iframeContainer);
setTimeout(WalleeCheckout.hideLoader(), 10000);

}
},

Expand Down Expand Up @@ -190,4 +196,4 @@ window.addEventListener('popstate', function (e) {
return;
}
window.location.href = WalleeCheckout.cart_recreate_url;
}, false);
}, false);
20 changes: 1 addition & 19 deletions src/WalleePayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,4 @@ public function deactivate(DeactivateContext $deactivateContext): void
$this->disablePaymentMethods($deactivateContext->getContext());
}


/**
* @param \Shopware\Core\Framework\Plugin\Context\UpdateContext $updateContext
*
* @throws \Wallee\Sdk\ApiException
* @throws \Wallee\Sdk\Http\ConnectionException
* @throws \Wallee\Sdk\VersioningException
*/
public function postUpdate(UpdateContext $updateContext): void
{
parent::postUpdate($updateContext);
/**
* @var \WalleePayment\Core\Api\WebHooks\Service\WebHooksService $webHooksService
*/
$webHooksService = $this->container->get(WebHooksService::class);
$webHooksService->install();
}

}
}

0 comments on commit 53e7f92

Please sign in to comment.