Guest User

bysquare

a guest
Jul 28th, 2015
605
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function render(PayObject $object, $size = 122)
  2.     {
  3.         $object->validate();
  4.  
  5.         $bsqr = bysquare_encode_xml($this->generateXML($object));
  6.  
  7.         if ($bsqr['result'] == 0) {
  8.             $result = bysquare_qr_encode_to_string($bsqr['output'], (int) $size);
  9.             return $result['output'];
  10.         } else {
  11.             return FALSE;
  12.         }
  13.         return FALSE;
  14.     }
RAW Paste Data