IOS receipt validation error 21002

前端 未结 5 520
旧巷少年郎
旧巷少年郎 2021-01-01 03:01

I\'m trying to use receipt validation with my server side. Everything is ok, but sometimes I see strange: 10 times validation is OK, but on 11 i get 21002 error. I dont know

5条回答
  •  星月不相逢
    2021-01-01 03:25

    This is late so you might well have solved this now - but i noticed a typo - you left out a ")" where you cast to a string in the condition == "ok":

    if let parseJSON = json {
        if String(parseJSON["status"]! == "ok" {
        //do something
    

提交回复
热议问题