components subscriptions virtual_currency virtual_items hidden order selected_group selected_itemstring
用户打开虚拟物品选项卡时将会选择的物品。物品 SKU 应发送至此处。
currency_formatstring
设置为code
以在支付UI中显示三字母的ISO 4217 货币代码。默认显示货币符号而不是三字母货币代码。
desktopheader close_button boolean
是否在支付UI中显示关闭 按钮。该按钮将关闭支付UI并将用户重定向到settings.return_url
参数中指定的URL。默认为false
。
close_button_icon string
Enum: Description arrow 支付UI页眉左侧的← 图标。
cross 支付UI页眉右侧的× 图标。
is_visible type string
如何显示标题。不能为compact
(隐藏项目名称和用户ID)或normal
(默认)。
Enum: "compact" "normal" visible_logo boolean
如为true
,Logo在标题中显示。要上传图片,请在发布商帐户 中打开您的项目,然后前往支付中心 > 设置 部分。
visible_name visible_purchase boolean
是否在标题中显示购买描述(purchase.description.value
)。默认为true
。
subscription_list descriptionstring
可以在此传递订阅相关的任意文本。文本将显示在订阅计划列表的上方。
display_local_priceboolean
如为true
且如果用户的当地货币与订阅计划的货币不同,则用户将看到两种价格:以当地货币和基础货币标价的价格。
gp_quick_payment_buttonboolean
Google Pay支付方式的显示方式。如为true
,则通过Google Pay快速支付的按钮在支付UI顶部显示。如为false
,则根据PayRank 算法在支付方式列表中显示Google Pay。默认为false
。
header visible_virtual_currency_balance
is_cart_open_by_defaultboolean
打开支付UI移动版本时购物车商品列表的显示方式。如为true
,列表以扩展视图显示。如为false
(默认)或未传入此参数,列表以折叠视图显示。
is_independent_windowsboolean
是否将用户从嵌入式启动器浏览器(WebView)跳转到其默认的浏览器来进行购买。默认为false
。
is_payment_methods_list_modeboolean
打开支付UI时是否显示在该用户所在国家/地区可用的支付方式。如为false
(默认),将显示在settings.payment_method
参数中传入的支付方式或PayRank算法 选择的支付方式。
is_prevent_external_link_openboolean
是否禁用将链接重定向至外部资源。默认为false
。点击外部链接时,将通过postMessage
机制发送external-link-open
事件。重定向链接的地址在url
参数中传递。
is_search_field_hiddenboolean
是否在支付UI中显示支付方式搜索栏。如为true
,则隐藏搜索栏,默认为false
。
is_show_close_widget_warningboolean
关闭支付页面前鼠标悬停在 × 图标时是否显示交易正在处理中的警告。如传入false
,或未传入参数,则不显示警告。默认为true
。
is_three_ds_independent_windowsboolean
Default: false
是否在新浏览器窗口中打开3-D Secure检查。如果您的设置强制执行内容安全政策(CSP),请设置为true
。
layoutstring
支付UI主要元素的位置。您可以在游戏内打开支付UI和/或交换订单信息和支付方式信息列的位置。详细信息请参阅自定义说明 。
Enum: "embed" "column_reverse" "embed_column_reverse" mobileheader close_button boolean
是否在支付中心移动端显示关闭 按钮。该按钮将关闭支付中心并将用户重定向到settings.return_url
参数中指定的URL。默认为false
。
close_button_icon string
Enum: Description arrow 支付UI页眉左侧的← 图标。
cross 支付UI页眉右侧的× 图标。
modestring
支付中心的界面模式。可能的值为user_account
。请注意,页眉仅包含用户帐户的导航菜单,而没有用于选择产品或进行付款的任何选项。“用户帐户”仅在桌面模式下可用。
themestring
支付UI主题。可以是63295a9a2e47fab76f7708e1
(浅色主题(默认)),或63295aab2e47fab76f7708e3
(深色主题)。您也可以创建自定义主题 ,然后在此参数中传入其ID。
Enum: "63295a9a2e47fab76f7708e1" "63295aab2e47fab76f7708e3" user_account payment_accounts enableboolean
指定是否在支付UI中显示前往支付方式编辑页面的铅笔图标。默认为true
。
orderinteger >= 1
该部分在支付UI下拉列表中的位置。如传入了settings.ui.user_account.payment_accounts.enable
,则该属性为必需。