Skip to content

Commit 6a97405

Browse files
committed
Forbidden on StripeID mismatch.
1 parent af2e073 commit 6a97405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/stripe.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ func (api *API) stripeCheckoutIDGET(u *database.User, w http.ResponseWriter, req
300300
return
301301
}
302302
if cos.Customer.ID != u.StripeID {
303-
api.WriteError(w, ErrCheckoutDoesNotBelongToUser, http.StatusBadRequest)
303+
api.WriteError(w, ErrCheckoutDoesNotBelongToUser, http.StatusForbidden)
304304
return
305305
}
306306
coSub := cos.Subscription

0 commit comments

Comments
 (0)