You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
848 B

package model
type PaypalWebhookDetail struct {
ID string `json:"id"`
EventVersion string `json:"event_version"`
CreateTime string `json:"create_time"`
ResourceType string `json:"resource_type"` //checkout-order-订单付款 capture-付款确认 payouts-提现 refund-退款
EventType string `json:"event_type"`
Summary string `json:"summary"`
Resource struct {
BatchHeader struct {
BatchStatus string `json:"batch_status"` //SUCCESS-成功 DENIED-拒绝 FAILED-失败
SenderBatchHeader struct {
SenderBatchID string `json:"sender_batch_id"`
} `json:"sender_batch_header"`
} `json:"batch_header"`
CreateTime string `json:"create_time"`
ID string `json:"id"`
Status string `json:"status"` //COMPLETED-完成 APPROVED-用户已付款? PENDING-等待
} `json:"resource"`
}