Y
yakmoon
Guest
Hi, after following the IAP documentation and carefully examining the IOS IAP extenstion I couldn't find why the extension is not working. I searched on this forum to see if others are having the same issue. and yes there is another topic with IAP problem. but nobody even cared to answer the question to why it's not working.
this is the issue I have:
create event
the problem is that ios_iap_QueryProducts is not working properly. because in the social event I'm receiving an empty list of products. I wonder why?!
and when executing ios_iap_PurchaseProduct(); nothing happens, you know why? because the list doesn't exist! so is there any solution to this, or I should forget about ios?
note: I've submitted the game to app store and the testers there rejected my game because the IAP is not working.
this is their response:
I'm really excited to read the replies on this topic.
this is the issue I have:
create event
Code:
global.IAP_Enabled = ios_iap_IsAuthorisedForPayment();
IAP_PID0="Product1";
IAP_PID1="Product2";
global.IAP_PurchaseID[0, 0] = IAP_PID0;
global.IAP_PurchaseID[1, 0] = IAP_PID1;
if global.IAP_Enabled
{
ios_iap_AddProduct(IAP_PID0);
ios_iap_AddProduct(IAP_PID1);
ios_iap_QueryProducts();
}
and when executing ios_iap_PurchaseProduct(); nothing happens, you know why? because the list doesn't exist! so is there any solution to this, or I should forget about ios?
note: I've submitted the game to app store and the testers there rejected my game because the IAP is not working.
this is their response:
We found that your in-app purchase products exhibited one or more bugs when reviewed on iPad running iOS 13.2 on Wi-Fi.
Specifically, the “BUY” button was not responsive.
Next Steps
When validating receipts on your server, your server needs to be able to handle a production-signed app getting its receipts from Apple’s test environment. The recommended approach is for your production server to always validate receipts against the production App Store first. If validation fails with the error code "Sandbox receipt used in production," you should validate against the test environment instead.
Resources
You can learn more about testing in-app purchase products in your development sandbox environment in App Store Connect Developer Help.
For more information on receipt validation, please see What url should I use to verify my receipt? in the In-App Purchase FAQ.
Learn how to generate a receipt validation code in App Store Connect Developer Help.
Please see attached screenshot for details.
Specifically, the “BUY” button was not responsive.
Next Steps
When validating receipts on your server, your server needs to be able to handle a production-signed app getting its receipts from Apple’s test environment. The recommended approach is for your production server to always validate receipts against the production App Store first. If validation fails with the error code "Sandbox receipt used in production," you should validate against the test environment instead.
Resources
You can learn more about testing in-app purchase products in your development sandbox environment in App Store Connect Developer Help.
For more information on receipt validation, please see What url should I use to verify my receipt? in the In-App Purchase FAQ.
Learn how to generate a receipt validation code in App Store Connect Developer Help.
Please see attached screenshot for details.
I'm really excited to read the replies on this topic.