# It's official, Android in-app purchase code needs an update.

**URL:** <https://forums.unrealengine.com/t/its-official-android-in-app-purchase-code-needs-an-update/70155>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [July 28, 2016, 9:31pm UTC](https://forums.unrealengine.com/t/its-official-android-in-app-purchase-code-needs-an-update/70155 "2016-07-28T21:31:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Distul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Distul](https://forums.unrealengine.com/u/Distul)\
**Post date:** [July 28, 2016, 9:31pm UTC](https://forums.unrealengine.com/t/its-official-android-in-app-purchase-code-needs-an-update/70155/1 "2016-07-28T21:31:57Z")

</div>

Got this e-mail from Google, is this something we can fix in one of the java files or are we doomed until a code fix or sdk update happens?

> [@](#):
>
> Hello Google Play Developer,
> 
> We detected that your app(s) listed at the end of this email are invoking the in-app billing service without setting a target package for the intent. This can enable a malicious package to bypass the Play store billing system and access items that have not been purchased.
> 
> Next Steps
> 
> ```
> If you are using IabHelper, please start using the latest SDK.
> If you are manually invoking the in-app billing service, make sure you are calling Intent.setPackage(“com.android.vending”) on any intents to "com.android.vending.billing.InAppBillingService.BIND".
> Sign in to your Developer Console and submit the updated version of your app.
> Check back after five hours - we’ll show a warning message if the app hasn’t been updated correctly.
> 
> ```

---

<div class="post-metadata">

**Author:** ![Chris\_Babcock](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Chris\_Babcock](https://forums.unrealengine.com/u/Chris_Babcock)\
**Post date:** [July 28, 2016, 10:32pm UTC](https://forums.unrealengine.com/t/its-official-android-in-app-purchase-code-needs-an-update/70155/2 "2016-07-28T22:32:58Z")

</div>

Hi @Distul,

We already do this in IabHelper.java:

```
    Intent serviceIntent = new Intent("com.android.vending.billing.InAppBillingService.BIND");
    serviceIntent.setPackage("com.android.vending");

```

And in GooglePlayStoreHelper.java:

```
	Intent serviceIntent = new Intent("com.android.vending.billing.InAppBillingService.BIND");
	serviceIntent.setPackage("com.android.vending");

```

4.13 is also updating Google Play Services 5.0.89 (rev19) to 9.2.0 (rev31).

---

<div class="post-metadata">

**Author:** ![Distul](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Distul](https://forums.unrealengine.com/u/Distul)\
**Post date:** [July 28, 2016, 11:13pm UTC](https://forums.unrealengine.com/t/its-official-android-in-app-purchase-code-needs-an-update/70155/3 "2016-07-28T23:13:20Z")

</div>

> [@Chris Babcock;572452](#):
>
> Hi @Distul,
> 
> We already do this in IabHelper.java:
> 
> ```
> Intent serviceIntent = new Intent("com.android.vending.billing.InAppBillingService.BIND");
> serviceIntent.setPackage("com.android.vending");
> 
> ```
> 
> And in GooglePlayStoreHelper.java:
> 
> ```
> Intent serviceIntent = new Intent("com.android.vending.billing.InAppBillingService.BIND");
> serviceIntent.setPackage("com.android.vending");
> 
> ```
> 
> 4.13 is also updating Google Play Services 8.4 to 9.2.0.

I’m happy to hear about the services update. Weird that the configurations are already implemented as Dev Console is telling me my APKs don’t have those changes. But I checked the files of the last engine version I’ve published with and everything checks out.

Thank you for the quick response.
