SCPSurchargeConsent
Objective-C
@interface SCPSurchargeConsent : NSObject <NSCopying>
Swift
class SurchargeConsent : NSObject, NSCopying
The SurchargeConsent
contains configuration information for surcharge consent collection.
-
Whether to collect surcharge consent from the customer.
Defaults to
SCPSurchargeConsentCollectionDisabled
.Declaration
Objective-C
@property (nonatomic, readonly) SCPSurchargeConsentCollection collection;
Swift
var collection: SurchargeConsentCollection { get }
-
Display a custom message on the surcharge consent screen to the customer. If null, then no additional message will be displayed to the customer.
Defaults to nil
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) NSString *notice;
Swift
var notice: String? { get }
-
Unavailable
Declaration
Objective-C
- (nonnull instancetype)init;
-
Unavailable
Declaration
Objective-C
+ (nonnull instancetype)new;