apollo-backend/internal/api/receipt.go

33 lines
612 B
Go
Raw Normal View History

2021-08-08 18:19:47 +00:00
package api
import (
"net/http"
)
const receiptResponse = `{
"products": [
{
"name": "ultra",
2021-08-15 00:10:07 +00:00
"status": "SANDBOX",
2021-08-08 18:19:47 +00:00
"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)
2021-08-15 00:19:45 +00:00
w.Write([]byte(receiptResponse))
2021-08-08 18:19:47 +00:00
}