当支付系统拒绝交易时,艾克索拉会将交易详情通过ps_declined类型的Webhook发送至您配置的Webhook 
URL。该Webhook在授权或支付处理阶段发送。此情况下,不会发送payment\ 
order_paid Webhook。
支付系统拒绝的常见原因:
不应与以下情况混淆:
注意
如需接收ps_declined Webhook,请联系您的客户成功经理或发送邮件至csm@xsolla.com。
| notification_type required | string 通知类型。 | ||||||||||
| required | object 交易ID。 | ||||||||||
| object 退款详情(对象)。 | |||||||||||
| object 带有自定义项目设置的对象。 | |||||||||||
| 
 | |||||||||||
| object 用户详情(对象)。 | |||||||||||
| 
 | |||||||||||
返回以指示处理成功。
提供的信息有错误(例如,缺少必需的参数、授权失败等)时返回。在这种情况下,用户的钱已扣,但是购买失败。要退款,请发送邮件至support@xsolla.com联系艾克索拉客户支持。
返回以指示您的服务器存在的暂时性错误。
curl -v 'https://your.hostname/your/uri' \ -X POST \ -H 'Accept: application/json' \ -H 'Content-Type: application/json' \ -H 'Authorization: Signature 80543ba63e1e50cf05f15150fe75e7245da9a898' \ -d '{ "notification_type": "ps_declined", "settings": { "project_id": "18404", "merchant_id": "2340" }, "user": { "ip": "127.0.0.1", "email": "email@example.com", "id": "1234567", "country": "US" }, "transaction": { "id": "1", "dry_run": "1", "payment_method": "1" }, "refund_details": { "author": "support@xsolla.com", "code": "8", "reason": "Cancellation by the PS request", "reason_detail": "Insufficient funds" } }'
{- "error": {- "code": "INCORRECT_AMOUNT",
- "message": "Incorrect amount"
 }
}