mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-22 14:32:15 +00:00
subscribe work
This commit is contained in:
30
website/assets/subscribe.js
Normal file
30
website/assets/subscribe.js
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
const ITEM_ID = 'pro_01hmetcfzgwtjb75msm8sr8snn'
|
||||||
|
|
||||||
|
Paddle.Setup({
|
||||||
|
token: 'live_69ccb2c84631cfdc44e78975c88',
|
||||||
|
eventCallback: function (data) {
|
||||||
|
console.log(data)
|
||||||
|
},
|
||||||
|
checkout: {
|
||||||
|
settings: {
|
||||||
|
displayMode: 'inline',
|
||||||
|
frameTarget: 'checkout-container',
|
||||||
|
// frameInitialHeight: "450",
|
||||||
|
// frameStyle: "width: 100%; min-width: 312px; background-color: transparent; border: none;"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
Paddle.Checkout.open({
|
||||||
|
settings: {
|
||||||
|
displayMode: 'inline',
|
||||||
|
frameTarget: 'checkout-container',
|
||||||
|
// frameInitialHeight: "450",
|
||||||
|
// frameStyle: "width: 100%; min-width: 312px; background-color: transparent; border: none;"
|
||||||
|
},
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
priceId: ITEM_ID,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
})
|
||||||
@@ -38,6 +38,7 @@ def copy_assets():
|
|||||||
'style.css',
|
'style.css',
|
||||||
'map_howto.js',
|
'map_howto.js',
|
||||||
'support_plans.js',
|
'support_plans.js',
|
||||||
|
'subscribe.js',
|
||||||
'logo.jpg',
|
'logo.jpg',
|
||||||
'favicon.ico',
|
'favicon.ico',
|
||||||
'github.svg',
|
'github.svg',
|
||||||
|
|||||||
@@ -6,14 +6,12 @@
|
|||||||
<title>OpenFreeMap subscribe</title>
|
<title>OpenFreeMap subscribe</title>
|
||||||
<link rel="stylesheet" href="style.css" />
|
<link rel="stylesheet" href="style.css" />
|
||||||
<script src="https://cdn.paddle.com/paddle/v2/paddle.js"></script>
|
<script src="https://cdn.paddle.com/paddle/v2/paddle.js"></script>
|
||||||
<script type="text/javascript">
|
|
||||||
Paddle.Setup({
|
|
||||||
token: 'live_69ccb2c84631cfdc44e78975c88',
|
|
||||||
})
|
|
||||||
</script>
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>OpenFreeMap subscribe</h1>
|
<h1>OpenFreeMap subscribe</h1>
|
||||||
|
<div class="checkout-container"></div>
|
||||||
|
<script src="subscribe.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user