부정 결제 방지 시스템 검사 중에 트랜잭션이 거부되면 엑솔라는 afs_reject
유형이 포함된 웹훅의 트랜잭션 세부 정보를 웹훅 URL로
보냅니다. 이 웹훅을 수신하려면 고객 성공 매니저에게 문의하거나 csm@xsolla.com으로 이메일을 보내주세요.
You can give permissions to receive detailed information in webhooks. To do that, you can set the Show info about transactions via saved payment methods toggle On in Publisher Account in the Project settings > Webhooks > Advanced settings section.
notification_type required | string 알림 유형. | ||||||||||||||
required | object 트랜잭션 데이터 관련 값입니다. | ||||||||||||||
object 환불 세부 정보(오브젝트). | |||||||||||||||
object 사용자 정의 프로젝트 설정(개체)입니다. | |||||||||||||||
| |||||||||||||||
object 사용자 세부 사항(개체)입니다. | |||||||||||||||
|
성공적인 처리 표시를 반환합니다.
제공된 정보에 오류가 있는 경우 반환합니다(예: 필수 매개변수 누락, 인증 실패 등).
서버에 일시적인 오류가 있음을 표시하려면 돌아가세요.
curl -v 'https://your.hostname/your/uri' \ -X POST \ -d '{ "notification_type": "afs_reject", "settings": { "project_id": 18404, "merchant_id": 2340 }, "user": { "ip": "127.0.0.1", "phone": "18777976552", "email": "email@example.com", "id": "1234567", "name": "John Smith", "country": "US" }, "transaction": { "id": 1, "external_id": 1, "dry_run": 1, "agreement": 1 }, "refund_details": { "code": 4, "reason": "Potential fraud" } }'
{- "error": {
- "code": "INCORRECT_AMOUNT",
- "message": "Incorrect amount"
}
}