Skip to content

Commit 02d044f

Browse files
committed
Fixed #275 allow access to stripe instance on handlerInstance from the element
1 parent 63f1829 commit 02d044f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Fixed a bug where legacy default payment methods were not being set as default. ([#280](https://github.com/craftcms/commerce-stripe/pull/280))
66
- Fixed a bug that could cause duplicate payment sources to be created. ([#281](https://github.com/craftcms/commerce-stripe/pull/281))
7+
- Fixed a bug where it wasn’t possible to access the Stripe instance from JavaScript. ([#275](https://github.com/craftcms/commerce-stripe/issues/275))
78

89
## 4.1.0 - 2023-12-19
910

src/web/assets/elementsform/js/paymentForm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ function initStripe() {
298298
container.dataset.publishablekey,
299299
container
300300
);
301-
container.dataset.handlerInstance = handlerInstance;
301+
container.handlerInstance = handlerInstance;
302302
handlerInstance.handle();
303303
});
304304
}

0 commit comments

Comments
 (0)