Introduction | Overview of In-App Purchase | Retrieving Product Information | Making a Purchase
Adding a Store to Your Application | Verifying Store Receipts | Testing a Store | Auto-Renewable Subscriptions


본 페이지는 iOS In-App Purchase Programming Guide 문서의 Testing a Store 부분을 번역해 놓은 페이지 입니다. 발 번역이라 이상한 부분이 있을 수 있습니다. 발견즉시 댓글을 달아 주세요.




Testing a Store
스토어 테스트.

During development, you should test your application to ensure that purchases are working correctly. However, you do not want to charge users while testing your application. Apple provides a sandbox environment to allow you to test your application without creating financial transactions.

개발하는 동안, 당신은 구매가 제대로 작동하는지 확인하기 위해 응용 프로그램을 테스트해야합니다. 그러나, 당신은 응용 프로그램을 테스트하는 동안 사용자를 부과하지 않습니다. Apple은 금융 거래만들지 않고 응용 프로그램을 테스트 할 수 있도록 샌드 박스 환경을 제공합니다.

The Sandbox Environment
샌드 박스 환경

When you launch your application from Xcode, Store Kit does not connect to the App Store. Instead, it connects to a special sandbox store environment. The sandbox environment uses the infrastructure of the App Store, but it does not process actual payments. It returns transactions as if payments were processed successfully. The sandbox environment uses special iTunes Connect accounts that are limited to In-App Purchase testing. You cannot use your normal iTunes Connect account to test your store in the sandbox.

당신은 엑스 코드에서 응용 프로그램을 시작할 때, 스토어 키트앱 스토어에 연결되지 않습니다. 대신 특수 샌드 박스 매장 환경에 연결합니다.샌드 박스 환경은 앱 스토어인프라를 사용하지만 실제 결제를 처리하지 않습니다. 결제가 성공적으로 처리 된 것처럼 트랜잭션을 반환합니다.샌드 박스 환경은 특별한 아이튠즈 앱내 구매 테스트로 제한됩니다 계정을 연결합니다. 당신은 당신의 정상적인 아이튠즈 샌드 박스에서 상점을 테스트하는 계정을 연결 사용할 수 없습니다.


To test your application, create one or more special test accounts in iTunes Connect. You should make at least one test account for each region that your application is localized for. Detailed information about creating test accounts can be found in iTunes Connect Developer Guide.

응용 프로그램을 테스트하려면 연결 iTunes에서 하나 또는 그 이상의 특별한 테스트 계정을 만들 수도 있습니다. 당신은 당신의 응용 프로그램에 대한 지역화 된 영역에 대해 적어도 하나의 테스트 계정을 만들어야합니다. 테스트 계정을 만드는 방법에 대한 자세한 내용개발자 가이드를 연결 iTunes에서 찾을 수 있습니다.

Testing in the Sandbox
샌드 박스에서 테스트

Follow these steps to test your application in the sandbox.
샌드 박스에서 응용 프로그램을 테스트하려면 다음 단계를 수행하십시오.

  1. Log out from your iTunes account on the test device.
    테스트 장치에 아이튠즈 계정에서 로그 아웃합니다.

    Before you can test your application, you must first log out of your regular iTunes account. iOS 3.0 includes a Store category in the Settings application. To log out of your iTunes account, exit your application, launch the Settings application and click the Store icon. Sign out from the currently active account.

    응용 프로그램을 테스트하기 전에, 먼저 일반 아이튠즈 계정에서 로그 아웃해야합니다. IOS 3.0은 설정 애플리케이션 스토어 카테고리를 포함합니다. 아이튠즈 계정에서 로그 아웃하려면, 응용 프로그램을 종료 설정 응용 프로그램을 실행하고 저장 아이콘을 클릭합니다.현재 활성화 된 계정에서 로그 아웃합니다.

  2. Launch your application.
    응용 프로그램을 실행합니다.

    Once you have signed out of your account, exit Settings and launch your application. As you make purchases from your application’s store, Store Kit prompts you to authenticate the transaction. Log in using your test account to approve the payment. No financial transaction takes place, but transactions complete as if a payment was made.

    일단 귀하의 계정을 종료 설정에서 로그 아웃하고 응용 프로그램을 시작했다. 응용 프로그램가게에서 구입을 때, 스토어 키트는 당신이 거래를 인증하라는 메시지를 표시합니다.결제를 승인 테스트 계정을 사용하여 로그인합니다. 어떤 금융 거래이루어지지 않습니다,​​하지만 지불 것처럼 트랜잭션을 수행합니다.

Validating Receipts in the Sandbox
샌드 박스에있는 유효성 검사 영수증

You may also validate receipts created by the sandbox environment. The code to validate a receipt received from the sandbox is identical to that for the regular App Store, except your server must direct the request to the sandbox URL.

당신은 또한 샌드 박스 환경에서 생성 된 영수증을 확인할 수 있습니다. 서버가 샌드 박스 URL로 요청을 직접해야합니다 제외하고 샌드 박스에서받은 영수증을 확인하는 코드는 정기적으로 앱 스토어에 대한 동일합니다.

NSURL *sandboxStoreURL = [[NSURL alloc] initWithString: @"https://sandbox.itunes.apple.com/verifyReceipt"];

Posted by 창업자닉군
,