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