Documentation
¶
Overview ¶
Package callbacks implements the payment gateway callback subdomain of the billing module: it authenticates EPay/Stripe/Alipay notifications, verifies them against the order's immutable payment expectation, re-confirms with the gateway and settles the payment. Only the module facade may reach it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EPayNotifyMeta ¶
EPayNotifyMeta carries the raw callback transport details needed to verify the gateway signature.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(orders repository.OrderRepo, queue settle.Queue) *Service
func (*Service) AlipayNotify ¶
AlipayNotify authenticates and settles an Alipay F2F notification.
func (*Service) EPayNotify ¶
func (s *Service) EPayNotify(ctx context.Context, meta EPayNotifyMeta, req *dto.EPayNotifyRequest) error
EPayNotify authenticates and settles an EPay gateway callback.
Click to show internal directories.
Click to hide internal directories.