Documentation
¶
Index ¶
- type PaymentService
- func (s *PaymentService) AlipayNotify(ctx context.Context, req *v1.AlipayNotifyRequest) (*v1.AlipayNotifyReply, error)
- func (s *PaymentService) EPayNotify(ctx context.Context, req *v1.EPayNotifyRequest) (*v1.EPayNotifyReply, error)
- func (s *PaymentService) GetAvailablePaymentMethods(ctx context.Context, req *emptypb.Empty) (*v1.PaymentMethodsReply, error)
- func (s *PaymentService) StripeNotify(ctx context.Context, req *v1.StripeNotifyRequest) (*v1.StripeNotifyReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PaymentService ¶
type PaymentService struct {
v1.UnimplementedPaymentServer
// contains filtered or unexported fields
}
PaymentService Public Payment服务实现
func NewPaymentService ¶
func NewPaymentService(uc *paymentBiz.PaymentUseCase) *PaymentService
NewPaymentService 创建Public Payment服务
func (*PaymentService) AlipayNotify ¶
func (s *PaymentService) AlipayNotify(ctx context.Context, req *v1.AlipayNotifyRequest) (*v1.AlipayNotifyReply, error)
AlipayNotify 支付宝回调
func (*PaymentService) EPayNotify ¶
func (s *PaymentService) EPayNotify(ctx context.Context, req *v1.EPayNotifyRequest) (*v1.EPayNotifyReply, error)
EPayNotify 易支付回调
func (*PaymentService) GetAvailablePaymentMethods ¶
func (s *PaymentService) GetAvailablePaymentMethods(ctx context.Context, req *emptypb.Empty) (*v1.PaymentMethodsReply, error)
GetAvailablePaymentMethods 获取可用支付方式
func (*PaymentService) StripeNotify ¶
func (s *PaymentService) StripeNotify(ctx context.Context, req *v1.StripeNotifyRequest) (*v1.StripeNotifyReply, error)
StripeNotify Stripe回调
Click to show internal directories.
Click to hide internal directories.