I tried to created a test user for my IAP app for testing. Apple ask for the real credit card number in order to login the test user to apple store. I am afraid that apple store will charge me by chance while I do my testing.
Do you have to provide real credit card number for sandbox user?
The Apple sandbox environment lets you test in-app purchases on devices using product information set up in App Store Connect.
Enrollment requires a USD$99 fee. However, for purposes of limited device testing, Apple provides 'free provisioning'. Free provisioning/testing on your device: From within Xcode 7.
To test Apple Pay, you need an Apple sandbox tester account which you use to make the payment. You log into your test device with this new Apple sandbox tester account, and make test purchases. To create a sandbox tester account: Ensure you have a real Apple ID, and that it is part of the Apple Developer Program.
No you dont.
Log out by going through: Settings -> Store
Do NOT login with your test user. (Otherwise you get that credit card screen).
Instead run your app and login with the test user when asked to.
Note: If you have already logged in with your test user it will become invalid. So in your case you will need to create a fresh test user and only log in when prompted to do so by your app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With