Cannot test payment failure scenarios with in-app purchases with sandbox accounts

Originator:nicholas.solter
Number:rdar://29979588 Date Originated:1/11/2017
Status:Open Resolved:
Product:iOS + SDK Product Version:
Classification: Reproducible:
 
Area:
StoreKit

Summary:
Because sandbox accounts don't actually have billing info, there appears to be no way to test failure scenarios such as missing or invalid billing information.

Steps to Reproduce:
1. Create a sandbox user
2. Make an in-app purchase with the sandbox user.

Expected Results:
I would like to be able to test failure scenarios around billing/payment info.

Actual Results:
The purchase always succeeds. 

Version:
all ios versions

Notes:
Without this enhancement, we can only test these scenarios in production, which is less than ideal.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!