Advertisement
Guest User

bysquare

a guest
Jul 28th, 2015
770
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  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.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement