diff --git a/Example/PaymentSheet Example/PaymentSheet Example/PaymentSheet Example/AppDelegate.swift b/Example/PaymentSheet Example/PaymentSheet Example/PaymentSheet Example/AppDelegate.swift index 7e9b5857c3c..1a90a9d41b4 100644 --- a/Example/PaymentSheet Example/PaymentSheet Example/PaymentSheet Example/AppDelegate.swift +++ b/Example/PaymentSheet Example/PaymentSheet Example/PaymentSheet Example/AppDelegate.swift @@ -6,7 +6,7 @@ // Copyright © 2020 stripe-ios. All rights reserved. // -@_spi(STP) import Stripe +import Stripe import UIKit @UIApplicationMain diff --git a/Stripe/PaymentSheet.swift b/Stripe/PaymentSheet.swift index 8f8a7f84e0f..f8e0661eae0 100644 --- a/Stripe/PaymentSheet.swift +++ b/Stripe/PaymentSheet.swift @@ -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() }