subscribe work

This commit is contained in:
Zsolt Ero
2024-01-18 19:16:21 +01:00
parent c30891a27b
commit c9ffae4ddc
3 changed files with 34 additions and 5 deletions

View 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,
},
],
})