Closed skjangid closed 11 months ago
You can use the addFile
method to add files to your pass, like the example here:
$pass->addFile function is allowing absolute image path ? like the web image url ?
It won't allow web image URLs, you'd have to first download them to the filesystem.
The function accepts either relative or absolute local paths:
$pass->addFile('icon.png'); // icon.png in same folder as your script
// or:
$pass->addFile('/var/local/web/.../icon.png');
I want to show user prpfile image in the wallet, the option is available when i pass thumnail@2x,png in node.js but how i can use in php ?