Widget:PaddleCheckoutEmguTFWindowsYearly: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
// define items | // define items | ||
let | let tfItemsList = [ | ||
{ | { | ||
priceId: "pri_01jk744f8jrs76nzyh8m7epeb5", //Emgu TF for windows yearly subscription | priceId: "pri_01jk744f8jrs76nzyh8m7epeb5", //Emgu TF for windows yearly subscription | ||
Line 15: | Line 15: | ||
// open checkout | // open checkout | ||
function | function tfOpenCheckout(items){ | ||
Paddle.Checkout.open({ | Paddle.Checkout.open({ | ||
items: items | items: items | ||
Line 21: | Line 21: | ||
} | } | ||
</script> | </script> | ||
<button onclick=" | <button onclick="tfOpenCheckout(tfItemsList)">Subscribe to Emgu TF for Windows</button> |
Revision as of 02:44, 18 February 2025
<script src="https://cdn.paddle.com/paddle/v2/paddle.js"></script> <script type="text/javascript">
Paddle.Initialize({ token: "live_062e9f26b1386bde5929ce11225", // replace with a client-side token eventCallback: function(data) { console.log(data); } // prints events to console for debugging });
// define items let tfItemsList = [ { priceId: "pri_01jk744f8jrs76nzyh8m7epeb5", //Emgu TF for windows yearly subscription quantity: 1 } ]; // open checkout function tfOpenCheckout(items){ Paddle.Checkout.open({ items: items }); }
</script> <button onclick="tfOpenCheckout(tfItemsList)">Subscribe to Emgu TF for Windows</button>