13 Replies
      Latest reply on May 24, 2020 5:59 PM by musthavesteve
      JackB321 Level 1 Level 1 (0 points)

        Hello,

         

        Is anyone else having an issue where the sandbox in-app purchases aren't completing? I've changed nothing in my code and for some reason in-app purchases are not completing at all.

        • Re: Sandbox in app purchases not working
          PBK Level 7 Level 7 (3,795 points)

          An autorenewable subscription just worked for me in the sandbox.

           

          If your app is also available on the App Store be sure to delete old builds before installing a new build from Xcode.

            • Re: Sandbox in app purchases not working
              JackB321 Level 1 Level 1 (0 points)

              This is really weird. It seems my sandbox in app purchases are working when I test on my iPad but don't work when I try on my iPhone? Seems more like a device issue. Would a simple iOS restore from backup possibly fix this issue?

                • Re: Sandbox in app purchases not working
                  PBK Level 7 Level 7 (3,795 points)

                  Let's clarify:

                   

                         Is your app is available on the App Store

                         If so, did you delete old builds before installing a new build from Xcode.

                        Are you testing from an Xcode installation or a TestFlight installation

                   

                  Check under Settings/ iTunes & App Store / at the very bottom are you logged into the Sandbox?

                    • Re: Sandbox in app purchases not working
                      JackB321 Level 1 Level 1 (0 points)

                      I've just restored my iPhone from iCloud backup and the sandbox in-app purchases are working perfectly now... Makes no sense at all. Glad it;s working now though.

                        • Re: Sandbox in app purchases not working
                          PBK Level 7 Level 7 (3,795 points)

                          >I've just restored my iPhone from iCloud backup

                           

                          That's one way to delete old builds from your device before installing a new build from Xcode.

                            • Re: Sandbox in app purchases not working
                              Aidano101 Level 1 Level 1 (0 points)

                              There's no need for sarcasm. I've resolved sandbox issues this way when nothing else works – including the obvious step of deleting the app completely before installing a new build, which you're implying that the poster has somehow failed to bother trying.

                                • Re: Sandbox in app purchases not working
                                  PBK Level 7 Level 7 (3,795 points)

                                  " including the obvious step of deleting the app completely before installing a new build, which you're implying that the poster has somehow failed to bother trying."

                                   

                                  I was implying nothing.  I was asking - did you delete the build before reinstalling from Xcode.  I did not receive an answer to that question.  So I asked a second time.  I still did not receive an answer so I speculated that the problem was ....

                                   

                                               delete the old build from the device before reinstalling from Xcode. 

                                   

                                  Do you know if JackB321 ever did that?  Did you?   You called it "obvious" - what makes deleting the old build obvious?  And calling it an "obvious step" is insulting to all those people out there who did not realize that they need to delete the old build. Perhaps even the OP.

                      • Re: Sandbox in app purchases not working
                        musthavesteve Level 1 Level 1 (0 points)

                        This same problem is now happening to me as well.  Everything working fine earlier yesterday, but now being met with "Cannot connect to iTunes Store" in the console when tapping the purchase button for my item.

                         

                        I've tried creating new sandbox accounts, logging-in/out of iTunes (both real and sandbox account).  Right now I'm restoring the phone so I'll report back if that does the trick.

                         

                        Update: Issue still occurring after restoring from iCloud