mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-14 07:57:44 +00:00
32 lines
611 B
Go
32 lines
611 B
Go
package api
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
const receiptResponse = `{
|
|
"products": [
|
|
{
|
|
"name": "ultra",
|
|
"status": "SANBOX",
|
|
"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.Write([]byte(receiptResponse))
|
|
w.WriteHeader(http.StatusOK)
|
|
}
|