# 決済アカウントを追加する ユーザーがゲーム内で何かを購入するときに決済アカウントを追加したり、決済アカウントを保存したりするたびに、エクソーラは「payment_account_add」タイプのウェブフックをウェブフックURLに送信します。このウェブフックを受信するには、カスタマーサクセスマネージャーにご連絡いただくか、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のアカウント作成時に指定した国などです。2文字の大文字の[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) プロジェクトID。このパラメータは、[ドメインページ](https://publisher.xsolla.com/)のプロジェクト名の横にあります。 - `user` (object) ユーザーの詳細(オブジェクト)。 - `user.country` (string) ユーザーの国。2文字の国コード(大文字)は、[ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)に従って使用されます。 - `user.email` (string) ユーザーのEメール。 - `user.id` (string, required) ユーザーID。 - `user.ip` (string) ユーザーIP。 - `user.name` (string) ユーザー名。 - `user.zip` (string) Zipまたは郵便番号。 ## Response 400 fields (application/json): - `error` (object) - `error.code` (string) - `error.message` (string) ## Response 204 fields ## Response 500 fields