Skip to content

Commit

Permalink
Updating cvc recollection interface (stripe#3092)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooj-stripe authored Nov 28, 2023
1 parent c57e7db commit eaa2244
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public extension PaymentSheet {
_ intentCreationCallback: @escaping ((Result<String, Error>) -> Void)
) -> Void

public typealias CVCRecollectionHandler = () -> Bool
public typealias CVCRecollectionEnabledCallback = () -> Bool

/// Creates a `PaymentSheet.IntentConfiguration` with the given values
/// - Parameters:
Expand All @@ -58,7 +58,7 @@ public extension PaymentSheet {
paymentMethodTypes: [String]? = nil,
onBehalfOf: String? = nil,
confirmHandler: @escaping ConfirmHandler,
isCVCRecollectionEnabledCallback: CVCRecollectionHandler? = nil) {
isCVCRecollectionEnabledCallback: CVCRecollectionEnabledCallback? = nil) {
self.mode = mode
self.paymentMethodTypes = paymentMethodTypes
self.onBehalfOf = onBehalfOf
Expand All @@ -84,11 +84,9 @@ public extension PaymentSheet {
/// In the case of client-side confirmation, the CVC/CVV value will be
/// sent with the confirmation of the payment intent within payment_method_options.
///
/// (Future) In the case of server-side confirmation, the CVC/CVV value
/// will be contained in a ConfirmationToken and exposed via
/// a ConfirmationTokenID
/// Note: Only supported for PaymentSheet.FlowController integrations that use client-side confirmation
@_spi(EarlyAccessCVCRecollectionFeature)
public var isCVCRecollectionEnabledCallback: CVCRecollectionHandler
public var isCVCRecollectionEnabledCallback: CVCRecollectionEnabledCallback

/// Controls when the funds will be captured.
/// - Seealso: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-capture_method
Expand Down

0 comments on commit eaa2244

Please sign in to comment.