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:
parent
087e7b303d
commit
fd20804ed9
1 changed files with 5 additions and 0 deletions
|
|
@ -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&)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue