SCPPaymentIntentParametersBuilder
Objective-C
@interface SCPPaymentIntentParametersBuilder
: SCPBuilder <SCPPaymentIntentParameters *>
Swift
class PaymentIntentParametersBuilder : SCPBuilder<PaymentIntentParameters>
Builder class for SCPPaymentIntentParameters
.
-
Initializes SCPPaymentIntentParametersBuilder with the given parameters.
Declaration
Objective-C
- (nonnull instancetype)initWithAmount:(NSUInteger)amount currency:(nonnull NSString *)currency;
Swift
init(amount: UInt, currency: String)
Parameters
amount
The amount of the payment, provided in the currency’s smallest unit. - see:
SCPPaymentIntentParameters.amount
currency
The currency of the payment. - see:
SCPPaymentIntentParameters.currency
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setAmount:(NSUInteger)amount;
Swift
func setAmount(_ amount: UInt) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setCurrency: (nonnull NSString *)currency;
Swift
func setCurrency(_ currency: String) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setPaymentMethodTypes: (nonnull NSArray<NSNumber *> *)paymentMethodTypes;
Swift
func setPaymentMethodTypes(_ paymentMethodTypes: [NSNumber]) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setCaptureMethod: (SCPCaptureMethod)captureMethod;
Swift
func setCaptureMethod(_ captureMethod: CaptureMethod) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setMetadata: (nullable NSDictionary<NSString *, NSString *> *)metadata;
Swift
func setMetadata(_ metadata: [String : String]?) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setStripeDescription: (nullable NSString *)stripeDescription;
Swift
func setStripeDescription(_ stripeDescription: String?) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setStatementDescriptor: (nullable NSString *)statementDescriptor;
Swift
func setStatementDescriptor(_ statementDescriptor: String?) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setStatementDescriptorSuffix: (nullable NSString *)statementDescriptorSuffix;
Swift
func setStatementDescriptorSuffix(_ statementDescriptorSuffix: String?) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setReceiptEmail: (nullable NSString *)receiptEmail;
Swift
func setReceiptEmail(_ receiptEmail: String?) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setCustomer: (nullable NSString *)customer;
Swift
func setCustomer(_ customer: String?) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setApplicationFeeAmount: (nullable NSNumber *)applicationFeeAmount;
Swift
func setApplicationFeeAmount(_ applicationFeeAmount: NSNumber?) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setTransferGroup: (nullable NSString *)transferGroup;
Swift
func setTransferGroup(_ transferGroup: String?) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setTransferDataDestination: (nullable NSString *)transferDataDestination;
Swift
func setTransferDataDestination(_ transferDataDestination: String?) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setOnBehalfOf: (nullable NSString *)onBehalfOf;
Swift
func setOnBehalfOf(_ onBehalfOf: String?) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *)setSetupFutureUsage: (nullable NSString *)setupFutureUsage;
Swift
func setSetupFutureUsage(_ setupFutureUsage: String?) -> PaymentIntentParametersBuilder
-
Declaration
Objective-C
- (nonnull SCPPaymentIntentParametersBuilder *) setPaymentMethodOptionsParameters: (nonnull SCPPaymentMethodOptionsParameters *) paymentMethodOptionsParameters;
Swift
func setPaymentMethodOptionsParameters(_ paymentMethodOptionsParameters: PaymentMethodOptionsParameters) -> PaymentIntentParametersBuilder
-
Unavailable
Use
initWithAmount:currency:
Declaration
Objective-C
- (nonnull instancetype)init;
-
Unavailable
Use
initWithAmount:currency:
Declaration
Objective-C
+ (nonnull instancetype)new;