SCPCollectSetupIntentConfigurationBuilder

Objective-C


@interface SCPCollectSetupIntentConfigurationBuilder
    : SCPBuilder <SCPCollectSetupIntentConfiguration *>

Swift

class CollectSetupIntentConfigurationBuilder : SCPBuilder<CollectSetupIntentConfiguration>

The CollectSetupIntentConfigurationBuilder is used to create a CollectSetupIntentConfiguration object.

  • Set the customerCancellation property for the CollectSetupIntentConfiguration object that will be built.

    Declaration

    Objective-C

    - (nonnull SCPCollectSetupIntentConfigurationBuilder *)setCustomerCancellation:
        (SCPCustomerCancellation)customerCancellation;

    Swift

    func setCustomerCancellation(_ customerCancellation: CustomerCancellation) -> CollectSetupIntentConfigurationBuilder
  • Set the motoConfiguration property for the CollectSetupIntentConfiguration object that will be built.

    Declaration

    Objective-C

    - (nonnull SCPCollectSetupIntentConfigurationBuilder *)setMotoConfiguration:
        (nullable SCPMotoConfiguration *)motoConfiguration;

    Swift

    func setMotoConfiguration(_ motoConfiguration: MotoConfiguration?) -> CollectSetupIntentConfigurationBuilder
  • Set the collection reason for the CollectSetupIntentConfiguration object that will be built. Applicable only for Tap to Pay devices. The default value is SCPSetupIntentCollectionReasonSaveCard.

    Declaration

    Objective-C

    - (nonnull SCPCollectSetupIntentConfigurationBuilder *)setCollectionReason:
        (SCPSetupIntentCollectionReason)collectionReason;

    Swift

    func setCollectionReason(_ collectionReason: SetupIntentCollectionReason) -> CollectSetupIntentConfigurationBuilder