Skip to content

Commit

Permalink
ensure csrf registration (#26)
Browse files Browse the repository at this point in the history
* ensure csrf registration

* pr ref
  • Loading branch information
nadar authored May 27, 2021
1 parent 64cbef4 commit 25e2cf1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions src/frontend/stripe/transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

?>
<div class="payment-wrapper" id="payment-wrapper">
Expand Down

0 comments on commit 25e2cf1

Please sign in to comment.