question

andreas-1 avatar image
andreas-1 asked

invalidenvironmentforreceipt api error when using IAP PromoCode

invalidenvironmentforreceipt api error when using IAP PromorCode

Hi - we get this error when using a promo code for an IAP..., regular ( paid) IAP works.

Any ideas?

Cheers,

Andy

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Can you send me the specifics of the call and the receipt itself, so that I can have a look? The iOS receipt validation call checks both the app store sandbox and live environment to ensure validity of the receipt, since your submission title will need to do both (sandbox receipts are still used by the certification team there). So what should happen is that if it's not a live receipt, it should evaluate as a valid sandbox receipt. What that error is saying is that it's neither.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.