STPPaymentResult
Objective-C
@interface STPPaymentResult : NSObject
Swift
class STPPaymentResult : NSObject
When you’re using STPPaymentContext
to request your user’s payment details, this is the object that will be returned to your application when they’ve successfully made a payment.
See https://stripe.com/docs/mobile/ios/standard#submit-payment-intents.
-
The payment method that the user has selected. This may come from a variety of different payment methods, such as an Apple Pay payment or a stored credit card. - see: STPPaymentMethod.h If paymentMethod is nil, paymentMethodParams will be populated instead.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) STPPaymentMethod *paymentMethod;
Swift
var paymentMethod: STPPaymentMethod? { get }
-
The parameters for a payment method that the user has selected. This is populated for non-reusable payment methods, such as FPX and iDEAL. - see: STPPaymentMethodParams.h If paymentMethodParams is nil, paymentMethod will be populated instead.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) STPPaymentMethodParams *paymentMethodParams;
Swift
var paymentMethodParams: STPPaymentMethodParams? { get }
-
The STPPaymentOption that was used to initialize this STPPaymentResult, either an STPPaymentMethod or an STPPaymentMethodParams.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) id<STPPaymentOption> paymentOption;
-
Initializes the payment result with a given payment option. This is invoked by
STPPaymentContext
internally; you shouldn’t have to call it directly.Declaration
Objective-C
- (nonnull instancetype)initWithPaymentOption: (nonnull id<STPPaymentOption>)paymentOption;