SCPTip
Objective-C
@interface SCPTip : NSObject <SCPJSONDecodable, NSCopying>
Swift
class SCPTip : NSObject, JSONDecodable, NSCopying
Contains details about tips
For more information, see the official Stripe docs: Collect on-reader tips
-
Portion of the amount that corresponds to a tip
The value will be
null
in the following scenarios:- tipping is skipped by using the CollectConfiguration.skipTipping flag or by setting
TippingConfiguration.eligibleAmount to
0
- current reader location does not have a tipping config set
If “No tip” is selected on the reader, the value will be
0
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSNumber *amount;
Swift
var amount: NSNumber? { get }
- tipping is skipped by using the CollectConfiguration.skipTipping flag or by setting
TippingConfiguration.eligibleAmount to
-
Unavailable
You cannot directly instantiate
SCPTip
.Declaration
Objective-C
- (nonnull instancetype)init;
-
Unavailable
You cannot directly instantiate
SCPTip
.Declaration
Objective-C
+ (nonnull instancetype)new;