purchases-android icon indicating copy to clipboard operation
purchases-android copied to clipboard

[WIP] paywall custom purchase

Open jamesrb1 opened this issue 1 year ago • 1 comments

Callbacks are added to the PaywallViewModel in a new model struct MyAppPurchaseLogic, via itsPaywallOptions.

When the VM's purchase/restore methods are called, the MyAppPurchaseLogic struct (which holds the purchase/restore handlers) is passed down to the purchase orchestrator that calls the customer handlers if finishTransactions is false, skipping its built-in logic.

jamesrb1 avatar Jul 03 '24 18:07 jamesrb1

1 Error
:no_entry_sign: Label the PR using one of the change type labels
Label Description
breaking Changes that are breaking
build Changes that affect the build system
ci Changes to our CI configuration files and scripts
docs Documentation only changes
feat A new feature
fix A bug fix
perf A code change that improves performance
RevenueCatUI A change to the RevenueCatUI library
refactor A code change that neither fixes a bug nor adds a feature
style Changes that don't affect the meaning of the code (white-space, formatting, missing semi-colons, etc
test Adding missing tests or correcting existing tests
next_release Preparing a new release
dependencies Updating a dependency
phc_dependencies Updating purchases-hybrid-common dependency

Generated by :no_entry_sign: Danger

RevenueCat-Danger-Bot avatar Jul 03 '24 18:07 RevenueCat-Danger-Bot

Created a new branch from earlier in this series of commits based off advice received here https://revenuecat.slack.com/archives/C03HPN9UE80/p1720051171704469

jamesrb1 avatar Jul 04 '24 19:07 jamesrb1