Unable to complete Apple in App purchase in sandbox mode? Payment Verification - ios

I am using the Titanium Storekit module to setup in App purchases on my App. The code all seems to be working from an example so I created a test account for the app and then went into the App Store settings and changed my app store account to this new id, iPhone 4s iOS7 latest build. I entered valid credit card information and even completed a purchase to get rid of the payment verification.
In my app which is running in sandbox mode i click to make a purchase, then i login to my account and it switches to iTunes stating sandbox mode. It then asks me to verify my payment information, which i have done already in the app store, then asks for my login again. Then it just repeats the message sandbox mode, login and payment details.
I just can't get it to go through as a purchase?
I used this example for the Ti.Storekit
https://gist.github.com/dawsontoth/1448587

Related

Apple In App purchase with sandBox gets an error as “Your account has been disabled in the App Store and iTunes”

An iOS App has given for testing in TestFlight for testing In-App purchase
It used to test using the sandBox account, but now it's not working with sandBox and gets an error as “Your account has been disabled in the App Store and iTunes”.
Rechecked the product creation and checked the same - it's not worked.
Then created a new sandbox account and tried the same - its not worked, showed the same error.
Checked the issues in the web and from the related answers, tried to remove the account details from Settings --> iTunes & App Store - its not worked, showed the same error.
TestFlight users don't require a sandbox account, but they will test against an automatically created sandbox account.
This means it's no longer necessary to create test accounts in iTunes Connect.
Your TestFlight user is a legitimate App Store user, but doing in-app purchases made with beta builds are free within the context of the beta version.
More details available in the following section Testing in-app purchases with TestFlight by Marko Kruustük.

In app purchase is not working after release but it was working in sandbox mode

Reject from Apple for In APP Purchase
During development in app purchase auto-renewing subscription, I've created test accounts which are able to obtain the product of the in app purchase as well as actually purchasing it without an issue. I've submitted the version to the testFlight Beta and testing in app purchase as well as purchasing it with test accounts works well at sandbox mode environment. However after submitted to the IOS version app to the Apple review, the version of the app can't even retrieve the product, and nothing shows up when I press the button to send the purchase request.
IAP is attached to the binary and IAP is approved with the binary that i submit. But its not displaying in the production. In sandbox its listing fine.
Please tell me how you solved this problem?
Or is this factor not decisive and the application will not be rejected for this reason?

Using sandbox user to test In App Purchase

When I test my Cordova app (with cordova-plugin-purchase) all in app product IDs are reported invalid.
I tried to restore purchase (which calls store.refresh()) and a login prompt appeared. I log in with sandbox account but it asks for my billing information which it shouldn't. How do I test this app correctly?
Things I have tried:
Sign out from iOS App Store
Close iTunes on my Mac
Uninstall app, restart the phone, reinstall app
Install app via Xcode
Create a fresh sandbox user in US region
I never use sandbox account to sign in in the App Store application or in the iOS settings. I also never verified its email.
About my app's environment:
I have completed paid apps contract
The app is waiting for review submission
The binary is signed with developer key
One in app product is waiting for review submission, others are waiting for screenshot
All in app products are consumable
I have tested the code on Android and it is working correctly. I used same product ID in iTunes connect as in Play Store.
I noticed that app produces sandbox push notification token
The devices tested are an iPhone 4 running iOS 6 and a jailbroken iPad 2 running iOS 6

How to test In App Purchases through Apple TestFlight?

I uploaded my first app to iTunes Connect (iOS 8, iPhone) and it's now available through Apple TestFlight for internal and external testers.
I created a Non-Consumable in app purchase for it and would like to test it. How can I add it to my beta app?
I'm getting this message in iTunes Connect:
Your first In-App Purchase must be submitted with a new app version. Select it from the In-App Purchase section in Version Details
and click Submit.
You do not currently have a iOS Paid Apps contract in effect. If this In-App Purchase was submitted with your app, then your app will
not be available on the App Store until your contract goes into
effect. Legal, Admin, and Finance users can go to the Agreements, Tax,
and Banking module in iTunes Connect to view your contract status.
TestFlight users don't require a sandbox account, but they will test against an automatically created sandbox account.
Sandbox Accounts
The moment a tester opens your application, a sandbox
account is created for them. This means it's no longer necessary to
create test accounts in iTunes Connect. Testing In-App Purchases was
never easier.
Source
Note that your TestFlight user is a legitimate App Store user. That user will be purchasing, restoring, etc. from the IAP in the Sandbox as opposed to the real IAP.
On iTunes Connect, the IAP can be "Approved" or "Ready to Submit" (or any other status, I think).
English
Testers - TestFlight - Apple Developer
Each build is available to test for up to 90 days, starting from the
day the developer uploads their build. You can see how many days you
have left for testing in the app’s details page in TestFlight.
TestFlight will notify you each time a new build is available and will
include instructions on what you need to test.
All in-app purchases are free during the testing period.
中文
测试员 - TestFlight - Apple Developer
从开发者上传的那一天起,每个构建版本可被测试长达 90 天。您可以在 TestFlight 的 app 详细信息页面上查看可供测试的剩余天数。
在测试期间,所有 App 内购买项目都是免费的.
you can test in-app purchase with test account.
go to itunes connect -> Users and Roles --> Sandbox Testers
then create an account for testing your in app purchase.
when test in app purchase try to logout from app store which uses your real account. then it will ask for itunes account while in testing in app purchase then enter your test account credentials.
Testing IAP is going to require a test user that you create under iTunes connect. Plus code in you app to implement IAP. Then to test it you "purchase" the item from within the app, under the sandbox, using that user id.
As far as I know TestFlight is no different than testing the IAP on your device by building directly to your device.
I'm assuming that you didn't just add the IAP bundle id and expect it to do something.
If you have not added code to support IAP, that answer is non-trivial within the scope of a SE answer. Google IAP tutorial. There are lots of good ones out there.

cannot complete Purchases in Sandbox Mode for in app purchase in iPhone

I am developing an In App Purchase Application,
My application already is in AppStore. I created new application, in which i am integrating in-App Purchase. I Created Sandbox account (Selected Country US). I launched the application and moved to the iTunes, Clicked on the install. It is displaying the popup with Use Existing Apple Id, Create Apple ID ,cancel. I am entering the Apple Id and Password (sandbox). and then it is Displaying an pop up with Following message.
"Cannot Complete Purchase in Sandbox Mode
The purchase of "App Name" for $0.00 was successful,but Transactions can not be completed in sandbox mode.
[Environment : Sandbox]"
You can't use normal Apple ID in sandbox. You have to create test users in your iTunes Connect. Information about creating test accounts can be found in iTunes Connect Developer Guide.

Resources