Xsolla::Core::PurchaseParams
Purchase parameters.
Public Attributes
| Name | |
|---|---|
| string | currency Default purchase currency. |
| string | country User country. |
| string | locale Interface language. |
| int? | quantity Quantity of purchased items. |
| string | external_id Transaction external id. |
| string | tracking_id Unique user ID — used in marketing campaigns. Can contain digits and Latin characters. |
| 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. |
| Dictionary< string, object > | custom_parameters Project specific parameters. |
| ShippingData | shipping_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. |
| string | close_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. |
| bool | disable_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.
Found a typo or other text error? Select the text and press Ctrl+Enter.