If a transaction is declined by a payment system, Xsolla sends the transaction
details in a webhook of the ps_declined
type to your configured webhook URL.
The webhook is sent during the authorization or payment processing stage. In
this case, the payment\
order_paid webhook is not sent.
Typical reasons for payment system declines:
Should not be confused with:
Note
To receive the ps_declined
webhook, contact your Customer Success Manager or email csm@xsolla.com.
notification_type required | string 알림 유형. | ||||||||||
required | object Transaction details (object). | ||||||||||
object 환불 세부 정보(오브젝트). | |||||||||||
object Custom project settings (object). | |||||||||||
| |||||||||||
object User details (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"
}
}