1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-31 03:00:05 +00:00

InAppPurchases: when trying to buy an already purchased item in Play Store, call success callback with “Item already owned” status.

This commit is contained in:
Lukasz Kozakiewicz 2017-09-26 16:39:48 +02:00
parent 087e7b303d
commit fd20804ed9

View file

@ -203,6 +203,11 @@ struct InAppPurchases::Pimpl : private AsyncUpdater,
android.activity.callVoidMethod (JuceAppActivity.startIntentSenderForResult, intentSender.get(), requestCode,
fillInIntent.get(), flagsMask.get(), flagsValues.get(), extraFlags.get());
}
else if (responseCode == 7)
{
// Item already bought.
notifyAboutPurchaseResult ({ {}, productIdentifier, juceString (getPackageName()), {}, {} }, true, statusCodeToUserString (responseCode));
}
}
void restoreProductsBoughtList (bool, const juce::String&)