Skip to content

playbilling-v1.1.0

Choose a tag to compare

@gstepniewski-google gstepniewski-google released this 25 Jun 09:06
· 40 commits to main since this release

What's Changed

Google Play Billing Client v7 has removed ProrationMode and replaced it with ReplacementMode (details here).
The billing library will support both for the time being, so if your PWA handles subscriptions you should migrate as well.
When constructing your PaymentRequest object, instead of the field prorationMode with possible values ['deferred', 'immediateAndChargeProratedPrice', 'immediateWithoutProration', 'immediateWithTimeProration', 'unknownSubscriptionUpgradeDowngradePolicy', 'immediateAndChargeFullPrice'] you should use replacementMode and correspondingly ['deferred', 'chargeProratedPrice', 'withoutProration', 'withTimeProration', 'unknownReplacementMode', 'chargeFullPrice'].
ProrationMode is still supported for the time being, but is considered deprecated and will be removed in a future release.