Add Payment Details to a Sandbox Account to test IAP on iPhone? - ios

I'm testing purchasing a new product through the app I'm working on, and every time I put in the iTunes account for the sandbox user I created, I get a prompt that says "Add Payment Details".
According to the docs https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnectInAppPurchase_Guide/Chapters/TestingInAppPurchases.html I shouldn't have to do this.
I've created and deleted probably 5 different Sandbox accounts to test this purchase, but each time I am asked to input payment details. Even if I put payment details in, I get thrown back out of iTunes with "Connection Timeout"
Are the Apple Sandbox servers down? Did something change within the last month on testing IAP's? I was able to test a month ago, but now I cannot.

I'm experiencing this issue only with Free Trial subscription. Other subscription options with no free trial and IAPs work fine.
It seems Apple servers are not working fine for Free Trial subscriptions since thursday/friday.
Check this out: All sandbox testers created through iTunes Connect request "Payment Information Required"
Have you tried other IAPs?

I had this problem too on Friday and yesterday, but it appears to be fixed now. Try it again; if you still have problems, try creating a new sandbox test account and trying again with that one.

Related

Error Domain=SKErrorDomain Code=2 "can not connect to iTunes Store" in Production (Subscription)?

I have a user who is getting this error when they try to start a subscription (auto-renewing with free trial for one week) of my app. I have existing subscribers and this is the first I've heard of it so I don't (think) that it's widespread, but would possibly could be causing it on this users end? They tried to make the purchase several times in different WIFI/Cellular environments? There are older posts on this issue but they are primarily when testing IAPs in the sandbox (as opposed to production) and have no clear answer or cause.
That is the error code for payment cancelled, but I've also seen it occur for users when trying to buy a subscription that they already have access to.
Have the user check if they are already subscribed (here's the manage subscription url)
See if they are able to restore purchases within your app to get access to subscription

Sandbox User Login - Invalid Address

Basically I was trying to purchase subscription with developer mode certificates using Sandbox account details. Up to now I have used around 100 times same Sandbox user details and it was worked perfectly.
But from last 2 to 3 days its not get able to success in making purchase. At the end of purchase, I was getting following kind of dialog box then after no success in purchase.
Still application was not live in market so I can't use real apple account for making purchase so I was using sandbox user details for testing purpose.
Subscription as well normal product purchase also not working with same reason.
So what is running wrong in this? Please share some idea regarding this.
For this I found ad hoc solution at present.
I belong to India and up to now I used India country sandbox user account for testing purpose but from last few days its completely stopped working.
So I have created US sandbox user account and within Settings of iPhone, I selected US as country as Apple Store also selected as US user.
Then after I can able to test with sandbox user but still Indian user sandbox account not working so not sure what is going wrong into that but temporary solution I have so adjusted with that.

iOS In-App Purchase sandbox test account keeps popping up for verification

I have Auto-Renewable In-App Purchase item in my application which is in development stage. I could able to test the complete transaction till 2 days ago with different sandbox test accounts (+abc#def.com). From past couple of days when I am trying to test the transaction with new sandbox test accounts (+abc345#def.com), it is giving me an alert saying AppleID Verification - Open settings to continue signing with ******+abc345#def.com. I have already verified the account before trying to purchase. I have tried and tested with numerous new accounts I have created, getting the same alert message. When I googled the issue, got suggestions to create a sandbox account with different AppStore locations Like Canada, UK....etc. but didn't worked out for me.
Could anyone help, as I am struck in testing my transaction process.
Came to know this is an issue from Apple side, which they are aware of now and working on it.
https://forums.developer.apple.com/message/204979#204979
Finally it's working, sort of.
Make a fresh sandbox account.
Confirm it after receiving the email
Login in your app
If a Change password dialog appears, then change your password you confirmed a few seconds ago...
...and then it works.
Don't try to use accounts you have made the past few days before 13 January 2017, these are currently unusable.
no idea I have created multiple sandbox users never found this issue ever
https://forums.developer.apple.com/message/204979#204979
Its working great...
1. You need to create another test id from your iTunes account.
2. It will prompt to signing to settings.
3. Go there and change the password.
4. Now come back to app. and purchase any item. It will allow you to buy that item...

the apple id you entered couldn't be found or your password was incorrect

I am debugging my in-app purchase on ipad ( ios 7.0.3).
But when I enter my password, it always says "the apple id you entered couldn't be found or your password was incorrect".
my developer id and the apple id registered on this ipad are different.
when I intentionally enter wrong password, it displays a different message "Your Apple ID or password is incorrect".
My in-app purchase is in review state. But I feel, it doesn't have any impact on sandbox testing
I have restarted my device. I can use the same password for downloading/purchasing other apps from itunes.
I am not posting my in-app purchase code as this is out of our coding context.
In order to test in-app purchases before they are approved, you have to use test users, which you can create in iTunes Connect.
Once you sign in to iTunes Connect, you click where it says "Manage Users", which will let you create test users. Once you create a test user, you can use it within your development build of your app to test your in-app purchases. You can also create multiple test users if you need to repeatedly test non-consumable in-app purchases.
we have had same issue, spent whole day chasing rabbit at the end what solved issue was to set test account App Store Territory/country United states, in our case we have set country Pakistan on test account user causing issue
We also recently experienced this issue.
We "solved" it by using shorter email addresses for test users.
Emails longer than about 25 characters seemed to cause the error.

Is it possible to test in-app-purchase without having to enter bank details etc?

I want to test IAP, however it seems this isn't going to be possible without going through multiple hoops on iTunes Connect and entering bank information etc.
Reasons for SKProductsRequest returning 0 products?
Can anybody confirm if this is the case or not? If so then is there any reason why I can't just create a dummy test app entry in iTunes connect, enter garbage for the bank info, then after finishing testing delete the app entry from iTunes connect?
Yes, you definitely do have to enter banking and US tax info before you can do in-app purchases. I was getting "invalid product ID", but it started working as soon as my banking/tax info was set up. This doesn't seem to be documented anywhere.
Did not work for me. If it works out for you, let me know.
I tested in-app payment this late December 2013 / early January.
Yes you can test IAP without entering bank info. what you need to do is
Create a test user in itunesconnect
Run your app on an actual device
Launch AppStore App on your iphone/ipad
logout and login with your test user id
Go to your app and try to make an in-app purchase
You should get a prompt saying something like "Charge $0.99 to Sandbox"
You won't be charged to your actual account.
This is all documented by Apple HERE
Expand tab that says To perform testing for In-App Purchase products

Resources