apollo-backend/internal/api/receipt.go

13 lines
341 B
Go
Raw Normal View History

2021-07-26 17:54:24 +00:00
package api
import (
"net/http"
"github.com/julienschmidt/httprouter"
)
func (a *api) checkReceiptHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
w.Write([]byte(`{"status_code": 11, "status_message": "Receipt is valid, lifetime subscription", "subscription_type": "lifetime"}`))
w.WriteHeader(http.StatusOK)
}