mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-21 22:12: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,
|
||||
},
|
||||
],
|
||||
})
|
||||
Reference in New Issue
Block a user