Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paywalls: new .onPurchaseFailure and .onRestoreFailure modifiers #3622

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

NachoSoto
Copy link
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
@@ -27,10 +27,6 @@ class PresentIfNeededTests: TestCase {
try super.setUpWithError()

try AvailabilityChecks.iOS16APIAvailableOrSkipTest()

if #available(iOS 17.0, *) {
Copy link
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 :)

Copy link
Member

@joshdholtz joshdholtz left a comment

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
24 checks passed
@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