Skip to content

Allow passing old purchase id and GoogleReplacementMode to paywalls purchase flow#2890

Open
AlexGrafl wants to merge 1 commit intoRevenueCat:mainfrom
AlexGrafl:add-subscription-upgrade-parameters-to-paywall-options
Open

Allow passing old purchase id and GoogleReplacementMode to paywalls purchase flow#2890
AlexGrafl wants to merge 1 commit intoRevenueCat:mainfrom
AlexGrafl:add-subscription-upgrade-parameters-to-paywall-options

Conversation

@AlexGrafl
Copy link
Copy Markdown

Checklist

  • If applicable, unit tests
  • If applicable, create follow-up issues for purchases-ios and hybrids

Motivation

As per this issue #2479 , setting the GoogleReplacementMode is currently not possible when using Paywalls v2. This PR allows developers to change the proration mode and pass the old purchase id to the purchasing flow.

Description

  • Add new ReplaceProductData data class
  • Pass data to PurchaseParamsBuilder on purchase
  • Extend PaywallOptions and PaywallDialogOptions to support new parameter
  • Add tests in PaywallViewModelTest to verify correct parameters are passed to purchase flow

…rchase, extend PaywallOptions and PaywallDialogOptions to support new parameter
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.

1 participant