diff --git a/ios/StripeSdk.swift b/ios/StripeSdk.swift index 6e2c32ad1..b713f12bb 100644 --- a/ios/StripeSdk.swift +++ b/ios/StripeSdk.swift @@ -27,7 +27,7 @@ class StripeSdk: RCTEventEmitter, STPApplePayContextDelegate, STPBankSelectionVi var shippingMethodUpdateHandler: ((PKPaymentRequestShippingMethodUpdate) -> Void)? = nil var shippingContactUpdateHandler: ((PKPaymentRequestShippingContactUpdate) -> Void)? = nil - static let MISSING_INIT_ERROR = Errors.createError(ErrorType.Failed.rawValue, "Stripe publishableKey has not been set. Make sure you have initialized Stripe in your app with the StripeProvider component or the initStripe method.") + static let MISSING_INIT_ERROR = Errors.createError(ErrorType.Failed, "Stripe publishableKey has not been set. Make sure you have initialized Stripe in your app with the StripeProvider component or the initStripe method.") override func supportedEvents() -> [String]! { return ["onDidSetShippingMethod", "onDidSetShippingContact"]