before updating stripe library
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user