SCPPaymentIntentParameters


@interface SCPPaymentIntentParameters : NSObject

Parameters for creating an SCPPaymentIntent.

  • The amount of the payment, provided in the currency’s smallest unit.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger amount;
  • Three-letter ISO currency code, in lowercase. Must be a supported currency.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull currency;
  • Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSDictionary *metadata;
  • An arbitrary string attached to the object. If you send a receipt email for this payment, the email will include the description.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *stripeDescription;
  • A string to be displayed on your customer’s credit card statement. This may be up to 22 characters. The statement descriptor must contain at least one letter, may not include <>"' characters, and will appear on your customer’s statement in capital letters. Non-ASCII characters are automatically stripped. While most banks and card issuers display this information consistently, some may display it incorrectly or not at all.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *statementDescriptor;
  • Email address that the receipt for the resulting payment will be sent to.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *receiptEmail;
  • The ID of the Customer this PaymentIntent is for, if one exists.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *customer;
  • The amount of the application fee (if any) that will be applied to the payment and transferred to the application owner’s Stripe account. To use an application fee, the request must be made on behalf of another account, using the stripeAccount property or an OAuth key.

    The amount must be provided as a boxed UInt in the currency’s smallest unit.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSNumber *applicationFeeAmount;
  • A string that identifies the resulting payment as part of a group.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *transferGroup;
  • The account (if any) the payment will be attributed to for tax reporting, and where funds from the payment will be transferred to upon payment success.

    At capture time, use transfer_data[amount] to specify the amount that will be transferred automatically when a charge succeeds.

    When transferDataDestination is specified, onBehalfOf must also be specified and must match the destination of the transfer.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *transferDataDestination;
  • The Stripe account ID for which these funds are intended.

    When transferDataDestination is specified, onBehalfOf must also be specified and must match the destination of the transfer.

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSString *onBehalfOf;
  • Initializes SCPPaymentIntentParameters with the given parameters.

    Note: in testmode, only amounts ending in “00” will be approved. All other amounts will be declined by the Stripe API. For more information about this feature, see https://stripe.com/docs/terminal/testing#test-card

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAmount:(NSUInteger)amount
                                  currency:(nonnull NSString *)currency;

    Parameters

    amount

    The amount of the payment, provided in the currency’s smallest unit.

    currency

    The currency of the payment.

  • Unavailable

    Use initWithAmount:currency:

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Unavailable

    Use initWithAmount:currency:

    Declaration

    Objective-C

    + (nonnull instancetype)new;
  • Deprecated

    Did you mean to use stripeDescription?

    Use stripeDescription for the string attached to the object.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) DEPRECATED_MSG_ATTRIBUTE("Did you mean to use stripeDescription?") NSString *description;