# 付款被拒 当支付系统拒绝交易时,艾克索拉会将交易详情通过ps_declined类型的Webhook发送至您配置的Webhook URL。该Webhook在授权或支付处理阶段发送。此情况下,不会发送payment\ order_paid Webhook。 支付系统拒绝的常见原因: * 卡片授权失败(例如,支付系统因技术错误或银行无响应而无法完成授权流程)或被拒(例如,银行已响应但因资金不足或卡片信息无效而拒绝交易)。 * 3-D Secure验证失败、未完成或用户确认超时。 * 处理方或收单银行暂时不可用,或因不可逆转的错误(如账户已关闭或卡号无效)而强制拒绝。在不解决根本问题的情况下重试将无法成功完成交易。 不应与以下情况混淆: * 反欺诈拒绝,这类情况通过afs_reject Webhook报告。 * 成功支付后的退款和部分退款,这类情况通过refund和partial_refund webhook报告。 注意 如需接收ps_declined Webhook,请联系您的客户成功经理或发送邮件至csm@xsolla.com。 Endpoint: POST payment-declined Version: 1.0 ## Request fields (application/json): - `notification_type` (string, required) 通知类型。 - `refund_details` (object) 退款详情(对象)。 - `refund_details.author` (string) 退款发起人。根据下表传入字段值: 退款发起人 字段值 游戏(通过API)。 API 发布商帐户用户(自动退款)。 用户邮箱 发布商帐户用户(通过艾克索拉客户支持的帮助)。 support@xsolla.com 艾克索拉(通过艾克索拉客户支持的帮助)。 support@xsolla.com - `refund_details.code` (integer) 代码ID。 - `refund_details.reason` (string) 退款原因。 - `settings` (object) 带有自定义项目设置的对象。 - `settings.merchant_id` (integer) 商户ID。 - `settings.project_id` (integer) 项目编号。您可以在您的[发布商帐户](https://publisher.xsolla.com/)项目名称旁边。 - `transaction` (object, required) 交易ID。 - `transaction.dry_run` (integer) 测试交易。如为测试交易,该参数的值为1;如为真实交易,则不会发送该参数。 - `transaction.external_id` (string) 交易外部ID。 - `transaction.id` (integer) 交易ID。 - `transaction.payment_method` (integer) 付款方式ID。 - `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) 用户名。 ## Response 400 fields (application/json): - `error` (object) - `error.code` (string) - `error.message` (string) ## Response 204 fields ## Response 500 fields