Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reactjs & Paddle checkout

Tags:

reactjs

paddle

I'm using https://paddle.com/ as as payment processor for my software.

I'm getting the error

Page Not Found Sorry, the page you were looking for could not be found.` coming from Paddle and I wonder why, I have done everything correctly like on the docs.

My index.html

    <script src="https://cdn.paddle.com/paddle/paddle.js"></script>
    <script type="text/javascript">
      Paddle.Setup({ vendor: xxxxx});
    </script>

main.js

payment = () => {
      const Paddle = window.Paddle;
      const openCheckout = () => { 
          Paddle.Checkout.open({ product: xxxxxx});
      }

return(
     <Button variant="primary" onClick={openCheckout}>Subscribe Now!</Button>
)
}
like image 614
Clayton Crockville Avatar asked Sep 07 '25 09:09

Clayton Crockville


1 Answers

Setting the environment fixed the issue for me when testing against Paddle sandbox.

<script type="text/javascript">
      Paddle.Setup({ vendor: xxxxx});
      Paddle.Environment.set('sandbox'); // <<<-------
</script>
like image 98
Pavel Bely Avatar answered Sep 10 '25 00:09

Pavel Bely