Xsolla::Core::PurchaseParams

Purchase parameters.

Public Attributes

Name
stringcurrency
Default purchase currency.
stringcountry
User country.
stringlocale
Interface language.
int?quantity
Quantity of purchased items.
stringexternal_id
Transaction external id.
stringtracking_id
Unique user ID — used in marketing campaigns. Can contain digits and Latin characters.
stringinstall_source
Optional source where the mobile app was installed from (e.g., app_store, google_play). Used for Android/iOS payment requests only. If omitted, the SDK sends unknown as the default value.
Dictionary< string, object >custom_parameters
Project specific parameters.
ShippingDatashipping_data
Dictionary< string, object >shipping_method
int?payment_method
Payment method ID.
bool?close_button
Whether to show the ← icon in Pay Station so the user can close the payment UI at any stage of the purchase.
stringclose_button_icon
Defines the icon of the Close button in the payment UI. Can be arrow or cross. arrow by default.
bool?google_pay_quick_payment_button
Defines the way the Google Pay payment method is displayed. If true, the button for quick payment via Google Pay is displayed at the top of the payment UI. If false, Google Pay is displayed in the list of payment methods according to the PayRank algorithm. false by default.
booldisable_sdk_parameter
Disables the sdk parameter in the Payment token. false by default.

Public Attributes Documentation

variable currency

string currency;

Default purchase currency.

variable country

string country;

User country.

variable locale

string locale;

Interface language.

variable quantity

int? quantity;

Quantity of purchased items.

variable external_id

string external_id;

Transaction external id.

variable tracking_id

string tracking_id;

Unique user ID — used in marketing campaigns. Can contain digits and Latin characters.

variable install_source

string install_source;

Optional source where the mobile app was installed from (e.g., app_store, google_play). Used for Android/iOS payment requests only. If omitted, the SDK sends unknown as the default value.

variable custom_parameters

Dictionary< string, object > custom_parameters;

Project specific parameters.

variable shipping_data

ShippingData shipping_data;

variable shipping_method

Dictionary< string, object > shipping_method;

variable payment_method

int? payment_method;

Payment method ID.

variable close_button

bool? close_button;

Whether to show the ← icon in Pay Station so the user can close the payment UI at any stage of the purchase.

variable close_button_icon

string close_button_icon;

Defines the icon of the Close button in the payment UI. Can be arrow or cross. arrow by default.

variable google_pay_quick_payment_button

bool? google_pay_quick_payment_button;

Defines the way the Google Pay payment method is displayed. If true, the button for quick payment via Google Pay is displayed at the top of the payment UI. If false, Google Pay is displayed in the list of payment methods according to the PayRank algorithm. false by default.

variable disable_sdk_parameter

bool disable_sdk_parameter;

Disables the sdk parameter in the Payment token. false by default.

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].