diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e71ec0..552b2bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). In order to read more about upgrading and BC breaks have a look at the [UPGRADE Document](UPGRADE.md). +## 3.0.2 (27. May 2021) + ++ [#26](https://github.com/luyadev/luya-module-payment/pull/26) Ensure the CSRF meta informations are registered, otherwise a javascript error is thrown. + ## 3.0.1 (10. February 2021) + [#25](https://github.com/luyadev/luya-module-payment/pull/25) Fix issue where already captured safer pay process throws an `402 Action Failed` exception. diff --git a/src/frontend/stripe/transaction.php b/src/frontend/stripe/transaction.php index 8ad0fe1..f270eb6 100644 --- a/src/frontend/stripe/transaction.php +++ b/src/frontend/stripe/transaction.php @@ -16,6 +16,7 @@ $this->registerCss($this->render('@payment/stripe/dist/stripe.css')); $this->registerJsFile('https://js.stripe.com/v3/'); $this->registerJs($this->render('@payment/stripe/dist/stripe.js', ['publishableKey' => $publishableKey]), View::POS_END); +$this->registerCsrfMetaTags(); ?>