We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f452cb0 commit 0907aeeCopy full SHA for 0907aee
resources/js/paddle.js
@@ -0,0 +1,21 @@
1
+Paddle.Setup({vendor: 4062});
2
+
3
+function openCheckout(id, email = null) {
4
+ Paddle.Checkout.open({
5
+ product: id,
6
+ email: email,
7
+ closeCallback: "checkoutClose",
8
+ successCallback: "checkoutComplete",
9
+ });
10
+}
11
12
+$('.buy').on('click', (e) => openCheckout($(e.target).data('id')));
13
14
+function checkoutClose() {
15
+ $("#renewModal").modal('toggle')
16
17
18
+function checkoutComplete() {
19
20
+ window.location.reload()
21
0 commit comments