1

I am developing the InAppPurchase with Non_Renewing Subscription.from

[[NSBundle mainBundle] appStoreReceiptURL]

am receiving the receipt, but i am not receiving the

{ "status":0, "environment":"Sandbox", "receipt":{"receipt_type":"ProductionSandbox", "adam_id":0, "app_item_id":0, }

i didn't get the

app_item_id , always it returns ** "0"

**

anyone please help me to resolve my problem. Thanks advance

  • http://stackoverflow.com/questions/19556336/how-do-you-add-an-in-app-purchase-to-an-ios-application – pratik varsani Mar 06 '17 at 10:26
  • 1
    Possible duplicate of [How do you add an in-app purchase to an iOS application?](http://stackoverflow.com/questions/19556336/how-do-you-add-an-in-app-purchase-to-an-ios-application) – Pasi H Mar 06 '17 at 12:35

1 Answers1

0

The documentation for App Item ID states:

Apps are assigned an identifier only in the production environment, so this key is not present for receipts created in the test environment.

Seeing as though the receipt type is ProductionSandbox, you will not get an app_item_id.

Marc Greenstock
  • 11,278
  • 4
  • 30
  • 54