server_payments_dummy.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //go:build nopayments
  2. package server
  3. const hasStripe = false
  4. func (s *Server) handleBillingTiersGet(w http.ResponseWriter, _ *http.Request, _ *visitor) error {
  5. return errHTTPNotFound
  6. }
  7. func (s *Server) handleAccountBillingSubscriptionCreate(w http.ResponseWriter, r *http.Request, v *visitor) error {
  8. return errHTTPNotFound
  9. }
  10. func (s *Server) handleAccountBillingSubscriptionCreateSuccess(w http.ResponseWriter, r *http.Request, v *visitor) error {
  11. return errHTTPNotFound
  12. }
  13. func (s *Server) handleAccountBillingSubscriptionUpdate(w http.ResponseWriter, r *http.Request, v *visitor) error {
  14. return errHTTPNotFound
  15. }
  16. func (s *Server) handleAccountBillingSubscriptionDelete(w http.ResponseWriter, r *http.Request, v *visitor) error {
  17. return errHTTPNotFound
  18. }
  19. func (s *Server) handleAccountBillingPortalSessionCreate(w http.ResponseWriter, r *http.Request, v *visitor) error {
  20. return errHTTPNotFound
  21. }
  22. func (s *Server) handleAccountBillingWebhook(_ http.ResponseWriter, r *http.Request, v *visitor) error {
  23. return errHTTPNotFound
  24. }
  25. func (s *Server) handleAccountBillingWebhookSubscriptionUpdated(r *http.Request, v *visitor, event stripe.Event) error {
  26. return errHTTPNotFound
  27. }
  28. func (s *Server) handleAccountBillingWebhookSubscriptionDeleted(r *http.Request, v *visitor, event stripe.Event) error {
  29. return errHTTPNotFound
  30. }