apollo-backend/internal/api/receipt.go
2021-08-14 20:19:45 -04:00

32 lines
612 B
Go

package api
import (
"net/http"
)
const receiptResponse = `{
"products": [
{
"name": "ultra",
"status": "SANDBOX",
"subscription_type": "SANDBOX"
},
{
"name": "pro",
"status": "SANDBOX"
},
{
"name": "community_icons",
"status": "SANDBOX"
},
{
"name": "spca",
"status": "SANDBOX"
}
]
}`
func (a *api) checkReceiptHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte(receiptResponse))
}