Widget:PaddleSandboxCheckoutEmguCVWindowsYearly: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
let itemsList = [ | let itemsList = [ | ||
{ | { | ||
priceId: "pri_01jjpppnm89qnca6bcqm4qgmzb", | priceId: "pri_01jjpppnm89qnca6bcqm4qgmzb", //Emgu CV for windows yearly subscription | ||
quantity: 1 | quantity: 1 | ||
} | } |
Revision as of 01:33, 4 February 2025
<script src="https://cdn.paddle.com/paddle/v2/paddle.js"></script> <script type="text/javascript">
Paddle.Environment.set("sandbox"); Paddle.Initialize({ token: "test_dcf8447595ee059a9fbd13a503b" // replace with a client-side token });
// define items let itemsList = [ { priceId: "pri_01jjpppnm89qnca6bcqm4qgmzb", //Emgu CV for windows yearly subscription quantity: 1 } ]; // open checkout function openCheckout(items){ Paddle.Checkout.open({ items: items }); }
</script> <button onclick="openCheckout(itemsList)">Buy now</button>