IAP - Payment Completed with error

Hi all,

I'm creating an app that has in-app purchases and it works well in the sandbox mode. I have a couple of questions about the flow and a some errors that I'm seeing.

Successful Payment Flow in Sandbox
  1. My app pulls up a screen with the name of the product along with the price and a "purchase" button.

  2. I click on the purchase button, enter my password and the screen shows a checkbox that it was completed.

  3. I then have to wait 2-3 seconds and an alert comes up saying "You're all set. Your purchase was successful."

My questions on this flow are:
  • Is the alert at the end shown because its in sandbox mode? Or is that something that always shows up after completion.

  • If that alert is always there can we modify the text that shows on it?

Unsuccessful Payment Flow in Sandbox
This method I was testing "interrupted purchases" from my sandbox user.

Steps 1 and 2 from above happen, then the app pulls up a modal with a Cancel and OK button to accept the new terms. If I press cancel I am routed to my failure method (which works) but I am getting the following notice in my log

Code Block language
Payment completed with error: Error Domain=ASDServerErrorDomain Code=3038 "Apple Media Services Terms and Conditions have changed." UserInfo={NSLocalizedDescription=Apple Media Services Terms and Conditions have changed.}

My question here is:
  • Did the payment actually process? (It looks like it did by having the purchase and checkbox from steps 1 and 2 complete)

Additional Unrelated Question
  • Is there a way in itunes connect / developer portal / etc to see what purchases have been made on production and sandbox modes?

Thanks
Eric.
IAP - Payment Completed with error
 
 
Q