Sale countdown timer and pass different price to payment gateway

Hello,

I am wondering if it is possible to show discounted price with a countdown timer with cookie and if the purchase is made within countdown time, the discounted price is passed to payment gateway else full price is passed to payment gateway.

Please point to some javascript scripts to start with.

<script>
console.log("Don't do this.");
</script>

Never, ever, leave the price of something up to the client side. Can you show a discounted price with a countdown timer? Sure. Should that price be taken from the browser to the payment gateway? No.

Why? Because I can use the javascript console and change the price to 0.

1 Like

I can help with the timer but nothing else I am too busy for anything else here is the timer click view on codepen to see the code.

https://codepen.io/Javscript/pen/dyNZvwz?editors=0100

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.