apollo-backend/internal/api/receipt.go
2021-07-26 13:54:24 -04:00

12 lines
341 B
Go

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)
}