before updating stripe library
This commit is contained in:
parent
f58e1bc40b
commit
4a998b5925
|
|
@ -35,7 +35,7 @@ func getstripepaymentintentHandler(response http.ResponseWriter, request *http.R
|
||||||
amount := 0
|
amount := 0
|
||||||
for _, tracker := range trackers {
|
for _, tracker := range trackers {
|
||||||
items = strings.Split(tracker, ":")
|
items = strings.Split(tracker, ":")
|
||||||
if len(items) == 2 {
|
if len(items) >= 2 {
|
||||||
abo_count, err := strconv.Atoi(items[1])
|
abo_count, err := strconv.Atoi(items[1])
|
||||||
if err == nil {
|
if err == nil {
|
||||||
abo_years += abo_count
|
abo_years += abo_count
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue