Xsolla::Core::WebGlAppearance

Public Attributes

Name
bool?iframeOnly
Open payment UI in iframe on all devices.
stringwidgetWidth
Width of the widget. Default is 740px.
stringwidgetHeight
Height of the widget. Default is 760px.
int?zIndex
Controls the vertical stacking order (z-index). Default is 1000.
float?overlayOpacity
Opacity of the overlay (range: 0 to 1). Default is 0.6.
stringoverlayBackgroundColor
Overlay background color in hex format. Default is #000000.
bool?isModal
If true, the widget frame can’t be closed. Default is false.
bool?closeByClickOverlay
If true, clicking on the overlay will close the widget. Default is true.
bool?closeByKeyboardEscape
If true, pressing the ESC key closes the widget. Default is true.
stringcontentBackgroundColor
Background color of the widget in hex format. Default is ‘#ffffff’.
stringcontentMargin
Margin around the widget frame. Default is ‘10px’.
stringspinnerType
Type of animated loading spinner. Options: ‘xsolla’, ‘round’, ’none’, or ‘custom’. Default is ‘round’.
stringspinnerColor
Spinner color in hex format. Default is ‘#cccccc’.
stringspinnerUrl
URL of the custom spinner. Default is null.
float?spinnerRotationPeriod
Rotation period of the custom spinner in seconds. Default is 0.

Public Attributes Documentation

variable iframeOnly

bool? iframeOnly;

Open payment UI in iframe on all devices.

variable widgetWidth

string widgetWidth;

Width of the widget. Default is 740px.

variable widgetHeight

string widgetHeight;

Height of the widget. Default is 760px.

variable zIndex

int? zIndex;

Controls the vertical stacking order (z-index). Default is 1000.

variable overlayOpacity

float? overlayOpacity;

Opacity of the overlay (range: 0 to 1). Default is 0.6.

variable overlayBackgroundColor

string overlayBackgroundColor;

Overlay background color in hex format. Default is #000000.

variable isModal

bool? isModal;

If true, the widget frame can’t be closed. Default is false.

variable closeByClickOverlay

bool? closeByClickOverlay;

If true, clicking on the overlay will close the widget. Default is true.

variable closeByKeyboardEscape

bool? closeByKeyboardEscape;

If true, pressing the ESC key closes the widget. Default is true.

variable contentBackgroundColor

string contentBackgroundColor;

Background color of the widget in hex format. Default is ‘#ffffff’.

variable contentMargin

string contentMargin;

Margin around the widget frame. Default is ‘10px’.

variable spinnerType

string spinnerType;

Type of animated loading spinner. Options: ‘xsolla’, ‘round’, ’none’, or ‘custom’. Default is ‘round’.

variable spinnerColor

string spinnerColor;

Spinner color in hex format. Default is ‘#cccccc’.

variable spinnerUrl

string spinnerUrl;

URL of the custom spinner. Default is null.

variable spinnerRotationPeriod

float? spinnerRotationPeriod;

Rotation period of the custom spinner in seconds. Default is 0.

Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.
Last updated: October 27, 2026

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!
We couldn't send your feedback
Try again later or contact us at [email protected].