Browse Source

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

tags/2021-05-28
Lukasz Kozakiewicz 7 years ago
parent
commit
fd20804ed9
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      modules/juce_product_unlocking/native/juce_android_InAppPurchases.cpp

+ 5
- 0
modules/juce_product_unlocking/native/juce_android_InAppPurchases.cpp 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&)


Loading…
Cancel
Save