SCPSetupIntentConfigurationBuilder
Objective-C
@interface SCPSetupIntentConfigurationBuilder
: SCPBuilder <SCPSetupIntentConfiguration *>
Swift
class SetupIntentConfigurationBuilder : SCPBuilder<SetupIntentConfiguration>
The SetupIntentConfigurationBuilder
is used to create a SetupIntentConfiguration
object.
-
Set the enableCustomerCancellation property for the
SetupIntentConfiguration
object that will be built.Declaration
Objective-C
- (nonnull SCPSetupIntentConfigurationBuilder *)setEnableCustomerCancellation: (BOOL)enableCustomerCancellation;
Swift
func setEnableCustomerCancellation(_ enableCustomerCancellation: Bool) -> SetupIntentConfigurationBuilder
-
Set the moto property for the
SetupIntentConfiguration
object that will be built.Declaration
Objective-C
- (nonnull SCPSetupIntentConfigurationBuilder *)setMoto:(BOOL)moto;
Swift
func setMoto(_ moto: Bool) -> SetupIntentConfigurationBuilder
-
Set the collection reason for the
SetupIntentConfiguration
object that will be built. Applicable only for Tap to Pay devices. The default value isSCPSetupIntentCollectionReasonSaveCard
.Declaration
Objective-C
- (nonnull SCPSetupIntentConfigurationBuilder *)setCollectionReason: (SCPSetupIntentCollectionReason)collectionReason;
Swift
func setCollectionReason(_ collectionReason: SetupIntentCollectionReason) -> SetupIntentConfigurationBuilder