Skip to content

Paywalls: new .onPurchaseFailure and .onRestoreFailure modifiers#3622

Merged
NachoSoto merged 1 commit into
mainfrom
paywalls-errors
Feb 1, 2024
Merged

Paywalls: new .onPurchaseFailure and .onRestoreFailure modifiers#3622
NachoSoto merged 1 commit into
mainfrom
paywalls-errors

Conversation

@NachoSoto

Copy link
Copy Markdown
Contributor

This allows detecting failures in purchases and restores.

This API is available in:

  • .presentPaywallIfNeeded
  • .paywallFooter
  • PaywallView()
  • PaywallViewControllerDelegate

This allows detecting failures in purchases and restores. This API is available in:
- `.presentPaywallIfNeeded`
- `.paywallFooter`
- `PaywallView()`
- `PaywallViewControllerDelegate`
@NachoSoto NachoSoto requested review from a team February 1, 2024 18:30

try AvailabilityChecks.iOS16APIAvailableOrSkipTest()

if #available(iOS 17.0, *) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Looks like these are working on 17.2 now :)

@joshdholtz joshdholtz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This looks good to me 👍

@NachoSoto NachoSoto enabled auto-merge (squash) February 1, 2024 18:52
@NachoSoto NachoSoto merged commit fc566cd into main Feb 1, 2024
@NachoSoto NachoSoto deleted the paywalls-errors branch February 1, 2024 19:16
NachoSoto pushed a commit that referenced this pull request Feb 1, 2024
**This is an automatic release.**

### New Features
* `CustomerInfo`: conform to `Identifiable` (#3619) via NachoSoto
(@NachoSoto)
### RevenueCatUI
* `Paywalls`: new `.onPurchaseFailure` and `.onRestoreFailure` modifiers
(#3622) via NachoSoto (@NachoSoto)
* `Paywalls`: `.onRestoreCompleted` is invoked after the restore dialog
is dismissed (#3620) via NachoSoto (@NachoSoto)
* `Paywalls`: disable interactive `sheet` dismissal during purchases
(#3613) via NachoSoto (@NachoSoto)
### Other Changes
* `CircleCI`: push pods using Xcode 15 (#3614) via NachoSoto
(@NachoSoto)
NachoSoto added a commit that referenced this pull request Feb 2, 2024
Similar to #3622.

This API is available in:
- `.presentPaywallIfNeeded`
- `.paywallFooter`
- `PaywallView()`
- `PaywallViewControllerDelegate`
NachoSoto added a commit that referenced this pull request Feb 3, 2024
Similar to #3622.

This API is available in:
- `PaywallView()`
- `.presentPaywallIfNeeded`
- `.paywallFooter`
- `PaywallViewControllerDelegate`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants