Skip to content

Conversation

@cb-rohitsharma
Copy link
Contributor

Upgraded Billing Client from v6.2.1 to v7.1.1, and made necessary code changes to support the updated version.

Changes

  • Upgraded Billing Client dependency to v7.1.1 (from v6.2.1).
  • Refactored buildBillingClient method in BillingClientManager.kt to handle breaking changes:
    • Updated usage of enablePendingPurchases() as per the new API requirements.

Impact

  • Purchase Flow

Testing

  • Verified successful initialization of the Billing Client.
  • Tested purchase flow scenario.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Upgrades the Google Billing Client to v7.1.1 and updates SDK version and docs accordingly

  • Refactored buildBillingClient to use the new enablePendingPurchases(PendingPurchasesParams) API
  • Bumped sdkVersion constant from 2.0.0-beta-4 to 2.0.0-beta-5
  • Updated README to reflect Billing Library 7.1.1

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
chargebee/src/main/java/com/chargebee/android/billingservice/BillingClientManager.kt Added PendingPurchasesParams import and updated enablePendingPurchases call
chargebee/src/main/java/com/chargebee/android/Chargebee.kt Updated sdkVersion constant to 2.0.0-beta-5
README.md Adjusted documentation bullets to reference Google Billing Library 7.1.1
Comments suppressed due to low confidence (2)

README.md:9

  • The heading still references Billing Library 5 even though the README has been updated for v7.1.1. Please update the header to reflect the correct Billing Library version (e.g., "Updates for Billing Library 7").
> #### Updates for Billing Library 5

chargebee/src/main/java/com/chargebee/android/billingservice/BillingClientManager.kt:20

  • The import for PendingPurchasesParams appears to be from the wrong package. It should be imported from com.android.billingclient.api.PendingPurchasesParams instead of com.chargebee.android.models.
import com.chargebee.android.models.PendingPurchasesParams

@cb-haripriyan cb-haripriyan merged commit 598a6cf into master Jul 11, 2025
1 check failed
@cb-haripriyan cb-haripriyan deleted the chore/upgrade-billing-lib-v7 branch July 11, 2025 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants