SHARE
TWEET

Untitled

goldlinux Dec 6th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public function cnb_form2($params)
  2.   {
  3.     $params = $this->cnb_params($params);
  4.     $data = $this->encode_params($params);
  5.     $signature = $this->cnb_signature($params);
  6.  
  7.     $html = sprintf('
  8.            <div id="liqpay_checkout"></div>
  9.            <script>
  10.                window.LiqPayCheckoutCallback = function() {
  11.                    LiqPayCheckout.init({
  12.                        data: "%s",
  13.                        signature: "%s",
  14.                        embedTo: "#liqpay_checkout",
  15.                        mode: "embed" // embed || popup,
  16.                    }).on("liqpay.callback", function(data){
  17.                        // console.log(data.status);
  18.                        // console.log(data);
  19.                    }).on("liqpay.ready", function(data){
  20.                        // ready
  21.                    }).on("liqpay.close", function(data){
  22.                        // close
  23.                    });
  24.                };
  25.            </script>
  26.            <script src="//static.liqpay.ua/libjs/checkout.js" async></script>
  27.            ',
  28.         $data,
  29.         $signature
  30.     );
  31.     return $html;
  32.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top