Any ideas? Running on iOS 11 device, trying to make a purchase.
I am signed into itunes account on the iPhone, and there is an internet connection.
InAppUtils.purchaseProduct("productname", (error, response) => {
console.log("purchaseProuct callback");
// NOTE for v3.0: User can cancel the payment which will be available as error object here.
if (error) {
console.log(error); //look below for the output
}
if(response && response.productIdentifier) {
Alert.alert('Purchase Successful', 'Your Transaction ID is ' + response.transactionIdentifier);
//unlock store here.
}
});
Well that was my bad :) Had forgotten to enable In App Purchases under Capabilities in the Xcode project. The error can occur due to many things, but in this case it was no IAP capability :)
Any ideas? Running on iOS 11 device, trying to make a purchase. I am signed into itunes account on the iPhone, and there is an internet connection.
output of error: