该类型的 Event 对象会在 transfer
对象付款成功或失败时触发,以 Webhooks 形式发送至客户配置的 Webhooks URL。详情请参考 Events 事件。
事件类型 | 描述 |
---|---|
transfer.succeeded | 付款成功时触发。 |
transfer.failed | 付款失败时触发。 |
付款成功: { "id": "evt_NMO13SJt1jrOaxRMhXC4wj0k", "created": 1435752329, "type": "transfer.succeeded", "livemode": true, "object": "event", "data": { "object": { "id": "tr_fXTq1OHufjHOvbDiPG0qTSiP", "object": "transfer", "type": "b2c", "created": 1435752318, "time_transferred": 1435752318, "livemode": true, "status": "paid", "app": "app_1234567890abcDEF", "channel": "wx_pub", "order_no": "123456789", "amount": 1, "amount_settle": 1, "currency": "cny", "recipient": "Openid", "description": "Your Description", "transaction_no": "1010018301201507010307923793", "extra": { "user_name": "User Name", "force_check": true } } }, "pending_webhooks": 0, "request": "iar_TqvPiDH8SGeHm5GaTKbLuDWL" } 付款失败: { "id": "evt_NMO13SJt1jrOaxRMhXC4wjkk", "created": 1435752329, "type": "transfer.failed”, "livemode": true, "object": "event", "data": { "object": { "id": "tr_fXTq1OHufjHOvbDiPG0qTSiP", "object": "transfer", "type": "b2c", "created": 1435752318, "time_transferred": 1435752318, "livemode": true, "status": "failed", "app": "app_1234567890abcDEF", "channel": "wx_pub", "order_no": "123456789", "amount": 1, "amount_settle": 1, "currency": "cny", "recipient": "Openid", "description": "Your Description", "transaction_no": "1010018301201507010307923793", "extra": { "user_name": "User Name", "force_check": true } } }, "pending_webhooks": 0, "request": "iar_TqvPiDH8SGeHm5GaTKbLuDkk" }