SCPCollectSetupIntentConfigurationBuilder

Objective-C


@interface SCPCollectSetupIntentConfigurationBuilder
    : SCPBuilder <SCPCollectSetupIntentConfiguration *>

Swift

class CollectSetupIntentConfigurationBuilder : SCPBuilder<CollectSetupIntentConfiguration>

The CollectSetupIntentConfigurationBuilder is used to create a CollectSetupIntentConfiguration object.

  • Initializes SCPCollectSetupIntentConfigurationBuilder with the given allowRedisplay value.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAllowRedisplay:
        (SCPAllowRedisplay)allowRedisplay;

    Swift

    init(allowRedisplay: AllowRedisplay)

    Parameters

    allowRedisplay

    Indicates whether the customer consented to redisplaying the saved payment method.

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

    Declaration

    Objective-C

    - (nonnull SCPCollectSetupIntentConfigurationBuilder *)setAllowRedisplay:
        (SCPAllowRedisplay)allowRedisplay;

    Swift

    func setAllowRedisplay(_ allowRedisplay: AllowRedisplay) -> CollectSetupIntentConfigurationBuilder
  • 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
  • Unavailable

    Use initWithAllowRedisplay:.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    Use initWithAllowRedisplay:.

    Declaration

    Objective-C

    + (nonnull instancetype)new;