STPPaymentResult
@interface 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
Declaration
Objective-C
@property (readonly, nonatomic) STPPaymentMethod *_Nonnull paymentMethod;
Swift
var paymentMethod: STPPaymentMethod { get }
-
Initializes the payment result with a given source. This is invoked by
STPPaymentContext
internally; you shouldn’t have to call it directly.Declaration
Objective-C
- (nonnull instancetype)initWithPaymentMethod: (nonnull STPPaymentMethod *)paymentMethod;
Swift
init(paymentMethod: STPPaymentMethod)