# 添加支付帐户 每当用户在游戏内购买商品时添加或保存了一个支付帐户时,艾克索拉向Webhook URL发送一个payment_account_add类型的Webhook。要接收该Webhook,请联系您的客户成功经理或发送电子邮件至csm@xsolla.com。 Endpoint: POST add-payment-account Version: 1.0 ## Request fields (application/json): - `notification_type` (string, required) 通知类型。 - `payment_account` (object) 支付帐户详细信息(对象)。 - `payment_account.country` (string) 支付帐户的国家/地区。例如,发卡银行所在国家/地区或创建PayPal帐户时指定的国家/地区。使用符合[ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)标准的两个大写字母国家/地区代码。 - `payment_account.id` (string, required) 支付帐户ID。 - `payment_account.name` (string) 支付帐户在付款系统中的名称(例如支付卡卡号、邮箱等)。 - `payment_account.payment_method` (integer) 付款方式ID。 - `payment_account.type` (string) 支付帐户类型(例如银行卡、PayPal等)。 - `settings` (object) 带有自定义项目设置的对象。 - `settings.merchant_id` (integer) 商户ID。 - `settings.project_id` (integer) 项目编号。您可以在您的[发布商帐户](https://publisher.xsolla.com/)项目名称旁边。 - `user` (object) 用户详情(对象)。 - `user.country` (string) 用户所在国家/地区。使用[ISO 3166-1 alpha-2 标准](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)规定的2字母组合表示国家/地区。 - `user.email` (string) 用户电子邮件。 - `user.id` (string, required) 用户ID。 - `user.ip` (string) 用户 IP 地址。 - `user.name` (string) 用户名。 - `user.zip` (string) 邮编。 ## Response 400 fields (application/json): - `error` (object) - `error.code` (string) - `error.message` (string) ## Response 204 fields ## Response 500 fields