Example 4: Button Colors
Demonstration of Bootstrap predefined colors and custom hexadecimal colors.
Color Options
You can use Bootstrap predefined color names or any hexadecimal color code for custom styling.
Bootstrap Predefined Colors
Success (Green)
Primary (Blue)
Danger (Red)
Warning (Yellow)
Info (Cyan)
Dark (Black)
Custom Colors (Hexadecimal)
Custom Color #FF5733 (Orange)
Custom Color #9B59B6 (Purple)
Custom Color #1ABC9C (Turquoise)
Code Example
// Bootstrap predefined colors
$sdk->createCheckoutButton($request, "Pay", "success");
$sdk->createCheckoutButton($request, "Pay", "primary");
$sdk->createCheckoutButton($request, "Pay", "danger");
$sdk->createCheckoutButton($request, "Pay", "warning");
$sdk->createCheckoutButton($request, "Pay", "info");
$sdk->createCheckoutButton($request, "Pay", "dark");
// Custom hexadecimal colors
$sdk->createCheckoutButton($request, "Pay", "#FF5733");
$sdk->createCheckoutButton($request, "Pay", "#9B59B6");
$sdk->createCheckoutButton($request, "Pay", "#1ABC9C");