Skip to content

Commit

Permalink
Make PaymentSheet.reset() public (#1265)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramont-stripe authored Jul 5, 2022
1 parent c952096 commit 3c5a356
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2020 stripe-ios. All rights reserved.
//

@_spi(STP) import Stripe
import Stripe
import UIKit

@UIApplicationMain
Expand Down
3 changes: 1 addition & 2 deletions Stripe/PaymentSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,12 @@ public class PaymentSheet {
presentingViewController.presentPanModal(bottomSheetViewController, appearance: configuration.appearance)
}

// TODO(ramont): remove SPI
/// Deletes all persisted state.
///
/// You must call this method when the user logs out from your app.
/// This will ensure that any persisted state in PaymentSheet, such as
/// authentication cookies, is also cleared during logout.
@_spi(STP) public static func reset() {
public static func reset() {
LinkAccountService.defaultCookieStore.clear()
}

Expand Down

0 comments on commit 3c5a356

Please sign in to comment.