/home/techb158/ileadtechnology.com/SSM/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Image.php (1011B)
image = $imageBase64String;
return $this;
}
/**
* Get Image as Base-64 encoded String
*
* @return string
*/
public function getImage()
{
return $this->image;
}
/**
* Stores the Image to file
*
* @param string $name File Name
* @return string File name
*/
public function saveToFile($name = null)
{
// Self Generate File Location
if (!$name) {
$name = uniqid() . '.png';
}
// Save to File
file_put_contents($name, base64_decode($this->getImage()));
return $name;
}
}