in-app-purchase
in-app-purchase copied to clipboard
paymentState not found in subscription validation response
Hello! I want paymentState in validation response for auto-renewable subscription, to check that subscription is in a trial period or not. Can I get this object in response as in the official docs.
My Code:
iap.config({
verbose: true,
test: true,
appleExcludeOldTransactions: true, // if you want to exclude old transaction, set this to true. Default is false
applePassword: ApplePass,
googlePublicKeyStrLive: GooglePublicKey,
});
iap.setup((error)=>{
if (error) {
console.log("SETEP_ERROR ========>", error);
return;
}
iap.validate(service, receipt, (vError, validationResponse)=>{
if(iap.isValidated(validationResponse)){
const availablePurcheses = iap.getPurchaseData(validationResponse, {
ignoreCanceled: false,
ignoreExpired: false
});
}
});
});
same here any news on this? @ManalLiaquat ?