Web Checkout

You can start receiving payments with our Inline Checkout


<script src="https://checkout.paydestal.com/lib/init.js"></script>

 <script>


               const configOptions = {
                  environment: 'live', //live or sandbox
                  clientId: '{you live client id}',
      
                  amount: {amount},
                  customerEmail: '{email}',
                  customerMobile: '{phoneNumber}',
                  customerName: '{customerName}',
                  currency: '{currency}',
                  reference: {reference}, 
              };
        
              function handleButtonClick() {
                  if (window.PaydestalInit) {
                      const { openPopup, exitPopup } = window.PaydestalInit.create(configOptions);
                      openPopup();
                  }
              }
      
              document.getElementById('payButton').onclick = handleButtonClick;
          </script>
    

Last updated