Type Aliases
The following type aliases are available globally.
-
An empty block, called with no arguments, returning nothing.
Declaration
Swift
public typealias STPVoidBlock = () -> Void
-
A block to be run with the client secret of a PaymentIntent or SetupIntent.
Declaration
Swift
public typealias STPIntentClientSecretCompletionBlock = (String?, Error?) -> Void
Parameters
clientSecret
The client secret of the PaymentIntent or SetupIntent. See https://stripe.com/docs/api/payment_intents/object#payment_intent_object-client_secret
error
The error that occurred when creating the Intent, or nil if none occurred.