before updating stripe library

This commit is contained in:
Joerg Lehmann 2021-04-05 20:01:10 +02:00
parent f58e1bc40b
commit 4a998b5925
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ func getstripepaymentintentHandler(response http.ResponseWriter, request *http.R
amount := 0
for _, tracker := range trackers {
items = strings.Split(tracker, ":")
if len(items) == 2 {
if len(items) >= 2 {
abo_count, err := strconv.Atoi(items[1])
if err == nil {
abo_years += abo_count