每当用户完成支付流程时,我们都会向您的支付通知脚本发送交易的详细信息。
notification_type required | string 通知类型。 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object 交易ID。 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
required | object 带有支付详细信息的对象。 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
custom_parameters | object 您的自定义参数。 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object 带有购买相关数据的对象。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object 带有自定义项目设置的对象。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
object 用户详情(对象)。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
返回以指示处理成功。
提供的信息有错误(例如,缺少必需的参数、授权失败等)时返回。在这种情况下,用户的钱已扣,但是购买失败。要退款,请发送邮件至support@xsolla.com联系艾克索拉客户支持。
返回以指示您的服务器存在的暂时性错误。
{- "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": "string",
- "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"
}, - "order": {
- "id": 0,
- "lineitems": {
- "price": {
- "amount": null,
- "currency": "string"
}, - "quantity": 0,
- "sku": "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"
}
}, - "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"
}
}