# Upgrade Digital Goods API to Google Play Billing Library 7

Each year, the Google Play Billing Library is upgraded to a higher version, impacting developers who list their applications in the Google Play Store.

If you're a developer using Play Billing in your TWA through the Digital Goods API, or have used [Bubblewrap](https://github.com/GoogleChromeLabs/bubblewrap) to put your PWA in the Play store and are using Play Billing with it, the following changes will affect you and your action is required.

Effective **August 31, 2025**, version 7 of the Google Play Billing Library will be required to update existing applications or list new applications in the Google Play store.

We've updated the Digital Goods API and Android Browser Helper to Google Play Billing Library 7 to help you update your apps.

## Update your ABH dependencies

If you're using Bubblewrap, make sure you're on the latest version ([v.1.23.0](https://github.com/GoogleChromeLabs/bubblewrap/releases/tag/v1.23.0)) and then update and rebuild your app:

1. Run `npm update -g bubblewrap` to install the latest version of Bubblewrap.
2. Run `bubblewrap update` to update your project and get the latest version of ABH
3. Run `bubblewrap build` to rebuild your project

```
 cd <your_twa_dir> bubblewrap update bubblewrap build 
```

Otherwise, this can be done manually by editing your dependencies to include `'com.google.androidbrowserhelper:billing:1.1.0'` and then rebuilding your app. If you're using Gradle, you'd do this in your `build.gradle`:

```
 dependencies { ... implementation 'com.google.androidbrowserhelper:billing:1.1.0' } 
```

Once you're rebuilt your app, upload the updated version to Play.

## Update your subscription plan code

If your app is offering a subscription plan [ProrationMode](https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.ProrationMode) has been removed and replaced with [ReplacementMode](https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.SubscriptionUpdateParams.ReplacementMode). This change needs to be made to your PWA. [Learn more](https://github.com/GoogleChrome/android-browser-helper/releases/tag/billing-1.1.0)

If you're not able to make the necessary changes by August 31, 2025, you can request an extension until November 1, 2025 through the extension form available on the details page of the warning or the issue on the [Policy status page in Play Console](https://play.google.com/console/developers/app/policy-center). [Learn about Play Billing Library version deprecation](https://developer.android.com/google/play/billing/deprecation-faq)