Versions in this module Expand all Collapse all v1 v1.0.0 Mar 29, 2024 Changes in this version + var ErrNotSupportedForObject = fmt.Errorf("not supported for object") + var ErrUnknownEvent = fmt.Errorf("unknown event") + var ErrUnknownType = fmt.Errorf("unknown type") + var YooKassaIPs = []string + type Authenticity struct + func InitAuthenticity(ips []string) (*Authenticity, error) + func (r *Authenticity) Allowed(userIP string) (bool, error) + type Event string + const EventDealClosed + const EventPaymentCanceled + const EventPaymentSucceeded + const EventPaymentWaitingForCapture + const EventPayoutCanceled + const EventPayoutSucceeded + const EventRefundSucceeded + type Notification struct + func ParseNotificationBody(body []byte) (*Notification, error) + func (r *Notification) GetPayment() (*yoopayment.Payment, error) + func (r *Notification) GetPayout() (*yoopayout.Payout, error) + func (r *Notification) GetRefund() (*yoorefund.Refund, error) + func (r *Notification) IsPayment() bool + func (r *Notification) IsPayout() bool + func (r *Notification) IsRefund() bool + type Type string + const TypeNotification