purchases-unity

Unity in-app purchases and subscriptions made easy.

MIT License

Stars
91
Committers
20

Bot releases are visible (Hide)

purchases-unity - 5.0.0-alpha.1

Published by RCGitBot about 1 year ago

RevenueCat Purchases Unity v5 is here!! 😻

This latest release updates the Android SDK dependency from v5 to v6 to use BillingClient 5. This version of BillingClient brings an entire new subscription model which has resulted in large changes across the entire SDK.

Migration Guides

  • See Android Native - 5.x to 6.x Migration for a
    more thorough explanation of the new Google subscription model announced with BillingClient 5 and how to take
    advantage of it in V6. This guide includes tips on product setup with the new model.

New SubscriptionOption concept

Purchasing

In v4, a Google Play Android Package or StoreProduct represented a single purchaseable entity, and free trials or intro
offers would automatically be applied to the purchase if the user was eligible.

Now, in Unity v5, a Google Play Android Package or StoreProduct represents a duration of a subscription and contains all the ways to purchase that duration -- any offers and its base plan. Each of these purchase options are SubscriptionOptions.
When passing a Package to purchasePackage() or StoreProduct to purchaseStoreProduct(), the SDK will use the following logic to choose which
SubscriptionOption to purchase:

  • Filters out offers with "rc-ignore-offer" tag
  • Uses SubscriptionOption with the longest free trial or cheapest first phase
    • Only offers the user is eligible will be applied
  • Falls back to base plan

For more control, purchase subscription options with the new purchaseSubscriptionOption() method.

Models

StoreProduct now has a few new properties use for Google Play Android:

  • defaultOption
    • A subscription option that will automatically be applie when purchasing a Package or StoreProduct
  • subscriptionOptions
    • A list of subscription options (could be null)

Observer Mode

Observer mode is still supported in v5. Other than updating the SDK version, there are no changes required.

Offline Entitlements

✨ With this new feature, even if our main and backup servers are down, the SDK can continue to process purchases. This is enabled transparently to the user, and when the servers come back online, the SDK automatically syncs the information so it can be visible in the dashboard.

Offering Metadata

✨ Metadata allows attaching arbitrary information as key/value pairs to your Offering to control how to display your products inside your app. The metadata you configure in an Offering is available from the RevenueCat SDK. For example, you could use it to remotely configure strings on your paywall, or even URLs of images shown on the paywall.

See the metadata documentation for more info!

purchases-unity - 4.16.0

Published by RCGitBot over 1 year ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.18.0 (#288) via RevenueCat Git Bot (@RCGitBot)
  • Bump fastlane from 2.212.2 to 2.213.0 (#285) via dependabot[bot] (@dependabot[bot])
purchases-unity - 4.15.0

Published by RCGitBot over 1 year ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.16.0 (#282) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 4.14.0

Published by RCGitBot over 1 year ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.15.0 (#279) via RevenueCat Git Bot (@RCGitBot)
  • Bump danger from 9.2.0 to 9.3.0 (#275) via dependabot[bot] (@dependabot[bot])

Other Changes

  • Update fastlane-plugin-revenuecat version (#277) via Cesar de la Vega (@vegaro)
purchases-unity - 4.13.3

Published by RCGitBot over 1 year ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.14.3 (#272) via RevenueCat Git Bot (@RCGitBot)
  • Bump fastlane from 2.212.1 to 2.212.2 (#270) via dependabot[bot] (@dependabot[bot])
purchases-unity - 4.13.2

Published by RCGitBot over 1 year ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.14.2 (#267) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 4.13.1

Published by RCGitBot over 1 year ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.14.1 (#263) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 4.13.0

Published by RCGitBot over 1 year ago

New Features

  • add ImmediateAndChargeFullPrice proration mode (#258) via Andy Boedo (@aboedo)

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.14.0 (#260) via RevenueCat Git Bot (@RCGitBot)

Other Changes

  • deprecate UsesStoreKit2IfAvailable field (#259) via Andy Boedo (@aboedo)
purchases-unity - 4.12.2

Published by RCGitBot over 1 year ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.13.5 (#255) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 4.12.1

Published by RCGitBot over 1 year ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.13.4 (#252) via RevenueCat Git Bot (@RCGitBot)
  • Bump fastlane from 2.212.0 to 2.212.1 (#251) via dependabot[bot] (@dependabot[bot])

Other Changes

  • Runs integration tests on main too (#249) via Cesar de la Vega (@vegaro)
purchases-unity - 4.12.0

Published by RCGitBot over 1 year ago

New Features

  • Adds Purchases.SetLogHandler (#237) via Cesar de la Vega (@vegaro)

Bugfixes

  • Fix for NSInvalidArgumentException in GetPromotionalOffer (#245) via Cesar de la Vega (@vegaro)

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.13.3 (#247) via RevenueCat Git Bot (@RCGitBot)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.13.2 (#244) via RevenueCat Git Bot (@RCGitBot)
  • Bump fastlane from 2.211.0 to 2.212.0 (#243) via dependabot[bot] (@dependabot[bot])
purchases-unity - 4.11.0

Published by RCGitBot over 1 year ago

New Features

  • Added Purchases.SetLogLevel (#226) via NachoSoto (@NachoSoto)

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.13.1 (#240) via RevenueCat Git Bot (@RCGitBot)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.13.0 (#239) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 4.10.1

Published by RCGitBot over 1 year ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.12.1 (#235) via RevenueCat Git Bot (@RCGitBot)

Other Changes

  • Adds dependabot (#234) via Cesar de la Vega (@vegaro)
purchases-unity - 4.10.0

Published by RCGitBot over 1 year ago

Dependency Updates

  • Update gems (#231) via Cesar de la Vega (@vegaro)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.12.0 (#230) via RevenueCat Git Bot (@RCGitBot)

Other Changes

  • .gitignore .vsconfig Visual Studio files (#227) via NachoSoto (@NachoSoto)
purchases-unity - 4.9.0

Published by RCGitBot over 1 year ago

New Features

  • Add StoreProduct.SubscriptionPeriod (#222) via Cesar de la Vega (@vegaro)

Dependency Updates

purchases-unity - 4.8.0

Published by RCGitBot almost 2 years ago

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.8.0 (#217) via RevenueCat Git Bot (@RCGitBot)

Other Changes

  • Update Gemfile.lock (#218) via Cesar de la Vega (@vegaro)
purchases-unity - 4.7.0

Published by RCGitBot almost 2 years ago

New Features

  • Added SetCleverTapID, SetMixpanelDistinctID and SetFirebaseAppInstanceID (#209) via Andy Boedo (@aboedo)

Dependency Updates

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.7.0 (#211) via RevenueCat Git Bot (@RCGitBot)

Other Changes

  • Adds missing params for better changelogs when bumping (#214) via Cesar de la Vega (@vegaro)
  • Update fastlane plugin (#213) via Cesar de la Vega (@vegaro)
  • added extra link to the correct file for symlinking sources (#210) via Andy Boedo (@aboedo)
  • add openupm badge (#204) via Andy Boedo (@aboedo)
  • remove stalebot in favor of SLAs in Zendesk (#208) via Andy Boedo (@aboedo)
  • Update fastlane-plugin-revenuecat_internal to latest version (#206) via Cesar de la Vega (@vegaro)
purchases-unity - 4.6.4

Published by RCGitBot almost 2 years ago

Other Changes

  • Support unity package manager (UPM) (#175) via Toni Rico (@tonidero)
  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.5.4 (#201) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 4.6.3

Published by RCGitBot almost 2 years ago

Other Changes

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.5.3 (#198) via RevenueCat Git Bot (@RCGitBot)
purchases-unity - 4.6.2

Published by RCGitBot almost 2 years ago

Other Changes

  • [AUTOMATIC BUMP] Updates purchases-hybrid-common to 4.5.2 (#195) via RevenueCat Git Bot (@RCGitBot)
Badges
Extracted from project README
openupm
Related Projects