Когда пользователь успешно совершает оплату, мы отправляем детали о платеже на webhook URL.
notification_type required | string Тип оповещения. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object Объект с информацией о транзакции, связанной с этой операцией. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object Объект с финансовыми данными платежа. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
custom_parameters | object Ваши дополнительные параметры. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Объект с информацией о заказе. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Объект, содержащий настройки проекта. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object Объект с информацией о пользователе. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Верните, чтобы сообщить об успешной обработке вехбука.
Верните в случае ошибки в предоставленной информации (например, обязательный параметр не передан, или авторизация не прошла).
Верните, чтобы сообщить о временных ошибках на ваших серверах.
{- "custom_parameters": { },
- "notification_type": "string",
- "payment_details": {
- "direct_wht": {
- "amount": 0,
- "currency": "string",
- "percent": 0
}, - "payment": {
- "amount": 0,
- "currency": "string"
}, - "payment_method_fee": {
- "amount": 0,
- "currency": "string"
}, - "payment_method_sum": {
- "amount": 0,
- "currency": "string"
}, - "payout": {
- "amount": 0,
- "currency": "string"
}, - "payout_currency_rate": 0,
- "repatriation_commission": {
- "amount": 0,
- "currency": "string"
}, - "sales_tax": {
- "amount": 0,
- "currency": "string",
- "percent": 0
}, - "vat": {
- "amount": 0,
- "currency": "string",
- "percent": 0
}, - "xsolla_balance_sum": {
- "amount": 0,
- "currency": "string"
}, - "xsolla_fee": {
- "amount": 0,
- "currency": "string"
}
}, - "purchase": {
- "checkout": {
- "amount": 0,
- "currency": "string"
}, - "coupon": {
- "campaign_code": "string",
- "coupon_code": "string"
}, - "gift": {
- "giver_id": "string",
- "hide_giver_from_receiver": "string",
- "message": "string",
- "receiver_email": "string",
- "receiver_id": "string"
}, - "pin_codes": {
- "amount": 0,
- "currency": "string",
- "digital_content": "string",
- "drm": "steam",
- "upgrade": {
- "amount": 0,
- "currency": "string",
- "digital_content_from": {
- "DRM": "string",
- "digital_content": "string"
}, - "digital_content_to": {
- "DRM": "string",
- "digital_content": "string"
}
}
}, - "promotions": [
- {
- "id": 0,
- "technical_name": "string"
}
], - "subscription": {
- "amount": 0,
- "currency": "string",
- "date_create": "string",
- "date_next_charge": "string",
- "plan_id": "string",
- "product_id": "string",
- "subscription_id": 0,
- "tags": [
- "string"
]
}, - "total": {
- "amount": 0,
- "currency": "string"
}, - "virtual_currency": {
- "amount": 0,
- "currency": "string",
- "name": "string",
- "quantity": 0,
- "sku": "string"
}, - "virtual_items": {
- "amount": 0,
- "currency": "string",
- "items": [
- {
- "amount": 0,
- "sku": "string"
}
]
}
}, - "settings": {
- "merchant_id": 0,
- "project_id": 0
}, - "transaction": {
- "agreement": 0,
- "dry_run": 0,
- "external_id": "string",
- "id": 0,
- "payment_date": "string",
- "payment_method": 0,
- "payment_method_name": "string",
- "payment_method_order_id": "string"
}, - "user": {
- "country": "string",
- "email": "string",
- "id": "string",
- "ip": "string",
- "name": "string",
- "phone": "string",
- "zip": "string"
}
}
{- "error": {
- "code": "INCORRECT_AMOUNT",
- "message": "Incorrect amount"
}
}