Xsolla-logo

지불 거래 처리Webhook POST

트랜잭션이 생성되면 엑솔라는 트랜잭션이 in_progress 상태라는 정보가 포함된 웹훅을 전송합니다.

엑솔라는 성공적인 응답을 수신할 때까지 48시간 동안 웹훅을 여러 번 전송합니다. 48시간 후에도 응답이 없으면 요청이 실행되지 않은 것으로 간주되며 서비스가 웹훅 전송을 중지합니다.

참고

지불 제품에 대한 자세한 내용은 문서를 참조하세요.

Request
Request Body schema: application/json
amount
number

요청된 인출 금액입니다.

currency
string

요청된 인출 통화입니다.

customer_email
string

고객 이메일입니다.

customer_name
string

고객 이름입니다.

fee_merchant
number

거래 금액에서 차감되는 판매자 수수료입니다.

fee_total
number

거래 금액에서 차감되는 총 수수료 금액입니다.

fee_transaction
number

거래 금액에서 판매자 수수료를 제외하고 차감되는 수수료 금액입니다.

group_name
string

인출 방법 그룹 이름.

id
string

인출 ID입니다.

reject_reason
string

거래 거부 사유입니다. 거래가 성공적으로 완료된 경우에는 필드가 비어 있습니다.

service_name
string

인출 방법 이름.

status
string

트랜잭션 상태. 가능한 값:

  • in_progress - 트랜잭션이 생성되었습니다.
  • success - 트랜잭션이 성공적으로 완료되었습니다.
  • reject - 트랜잭션이 거부되었습니다.
Responses
200

반환하여 거래가 성공적으로 완료되었음을 나타냅니다.

Request samples
curl -v 'https://your.hostname/your/uri' \
-X POST \
-H 'Content-Type: application/json' \
-d '{
    "id": 123,
    "amount": 93.33,
    "currency": "USD",
    "customer_email": "email@example.com",
    "customer_name": "John",
    "fee_merchant": 2,
    "fee_transaction": 4.67,
    "fee_total": 6.67,
    "service_name": "international_wire_transfer",
    "group_name": "wire_transfer",
    "status": "in_progress",
    "reject_reason": ""
}'