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/paypal-js/success.php")
          })
      },
      onCancel: function (data) {
          window.location.replace("http://localhost/paypal-js/Oncancel.php")
      }
  }).render('#paypal-payment-button');