Example 6: Custom Logo
How to add a custom logo to the checkout page.
Important Requirements
- The logo must be a valid URL and publicly accessible
- Supported formats: JPEG, PNG, GIF, BMP, WebP, SVG
- The SDK automatically validates that the URL points to a valid image
- If the URL is not valid, an exception will be thrown
Payment Button
Logo Preview
Logo URL:
https://static.cdnlogo.com/logos/i/80/internet-society.svg
Code Example
// PNG logo
$request->logo_url = "https://your-site.com/logo.png";
// JPEG logo
$request->logo_url = "https://your-site.com/logo.jpg";
// SVG logo
$request->logo_url = "https://your-site.com/logo.svg";
// WebP logo
$request->logo_url = "https://your-site.com/logo.webp";