text: paypal.Buttons({
      style: {
          color: 'blue',
          shape: 'pill'
      },
      createOrder: function(data, actions) {
          return actions.order.create({
              purchase_units: [{
                  amount: {
                      value: '0.1'
                  }
              }]
          });
      },
      onApprove: function(data, actions) {
          return actions.order.capture().then(function(details) {
              console.log(details)
              window.location.replace("http://localhost:63342/PayPal_Integration_PHP-main/success.php")
          })
      },
      onCancel: function(data) {
          window.location.replace("http://localhost:63342/PayPal_Integration_PHP-main/Oncancel.php")
      }
  }).render('#paypal-payment-button');