Widget:PaddleCheckoutEmguTFProYearly: 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 tfProItemsList = [ | ||
{ | { | ||
priceId: "pri_01jk74bzptjtk81qd4jts0bggr", //Emgu TF Pro yearly subscription | priceId: "pri_01jk74bzptjtk81qd4jts0bggr", //Emgu TF Pro yearly subscription | ||
Line 15: | Line 15: | ||
// open checkout | // open checkout | ||
function | function tfProOpenCheckout(items){ | ||
Paddle.Checkout.open({ | Paddle.Checkout.open({ | ||
items: items | items: items | ||
Line 21: | Line 21: | ||
} | } | ||
</script> | </script> | ||
<button onclick=" | <button onclick="tfProOpenCheckout(tfProItemsList)">Subscribe to Emgu TF Pro</button> |
Revision as of 02:48, 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 });
// define items let tfProItemsList = [ { priceId: "pri_01jk74bzptjtk81qd4jts0bggr", //Emgu TF Pro yearly subscription quantity: 1 } ]; // open checkout function tfProOpenCheckout(items){ Paddle.Checkout.open({ items: items }); }
</script> <button onclick="tfProOpenCheckout(tfProItemsList)">Subscribe to Emgu TF Pro</button>