diff --git a/docs/docs/Categories.html b/docs/docs/Categories.html
index cc597593646..be84d27a9f7 100644
--- a/docs/docs/Categories.html
+++ b/docs/docs/Categories.html
@@ -105,6 +105,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -148,6 +151,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -174,6 +183,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -191,6 +203,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -254,7 +269,7 @@ Declaration
+
+
+
+
+
+
+
+
+ Stripe Reference
+
+ STPShippingAddressViewController Class Reference
+
+
+
+
+
+
+
+
+
+
+
STPShippingAddressViewController
+
+
+
@interface STPShippingAddressViewController : UIViewController
+
+
+
+
This view controller contains a shipping address collection form. It renders a right bar button item that submits the form, so it must be shown inside a UINavigationController
. Depending on your configuration’s shippingType, the view controller may present a shipping method selection form after the user enters an address.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
A convenience initializer; equivalent to calling initWithConfiguration:[STPPaymentConfiguration sharedConfiguration] theme:[STPTheme defaultTheme] currency:nil shippingAddress:nil selectedShippingMethod:nil prefilledInformation:nil
.
+
+
+
+
Declaration
+
+
Objective-C
+
- ( nonnull instancetype ) init ;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Initializes a new STPShippingAddressViewController
with the given payment context and sets the payment context as its delegate.
+
+
+
+
Declaration
+
+
Objective-C
+
- ( nonnull instancetype ) initWithPaymentContext :
+ ( nonnull STPPaymentContext * ) paymentContext ;
+
+
+
+
+
+
Parameters
+
+
+
+
+
+ paymentContext
+
+
+
+
+
The payment context to use.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Initializes a new STPShippingAddressCardViewController
with the provided parameters.
+
+
+
+
Declaration
+
+
Objective-C
+
- ( nonnull instancetype )
+ initWithConfiguration :( nonnull STPPaymentConfiguration * ) configuration
+ theme :( nonnull STPTheme * ) theme
+ currency :( nullable NSString * ) currency
+ shippingAddress :( nullable STPAddress * ) shippingAddress
+selectedShippingMethod :( nullable PKShippingMethod * ) selectedShippingMethod
+ prefilledInformation :( nullable STPUserInformation * ) prefilledInformation ;
+
+
+
+
+
+
Parameters
+
+
+
+
+
+ configuration
+
+
+
+
+
The configuration to use (this determines the required shipping address fields and shipping type).
+
+
+
+
+
+
+
+ theme
+
+
+
+
+
The theme to use to inform the view controller’s visual appearance.
+
+
+
+
+
+
+
+ currency
+
+
+
+
+
The currency to use when displaying amounts for shipping methods. The default is USD.
+
+
+
+
+
+
+
+ shippingAddress
+
+
+
+
+
If set, the shipping address view controller will be pre-filled with this address.
+
+
+
+
+
+
+
+ selectedShippingMethod
+
+
+
+
+
If set, the shipping methods view controller will use this method as the selected shipping method. If selectedShippingMethod
is nil, the first shipping method in the array of methods returned by your delegate will be selected.
+
+
+
+
+
+
+
+ prefilledInformation
+
+
+
+
+
If set, the shipping address view controller will be pre-filled with this information.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The view controller’s delegate. This must be set before showing the view controller in order for it to work properly. - see: STPShippingAddressViewControllerDelegate
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
If you’re pushing STPShippingAddressViewController
onto an existing UINavigationController
’s stack, you should use this method to dismiss it, since it may have pushed an additional shipping method view controller onto the navigation controller’s stack.
+
+
+
+
Declaration
+
+
Objective-C
+
- ( void ) dismissWithCompletion :( nullable STPVoidBlock ) completion ;
+
+
+
+
+
+
Parameters
+
+
+
+
+
+ completion
+
+
+
+
+
The callback to run after the view controller is dismissed. You may specify nil for this parameter.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/docs/Categories/UINavigationBar(Stripe_Theme).html b/docs/docs/Categories/UINavigationBar(Stripe_Theme).html
index b068da2e5a0..4e42cdfa3c0 100644
--- a/docs/docs/Categories/UINavigationBar(Stripe_Theme).html
+++ b/docs/docs/Categories/UINavigationBar(Stripe_Theme).html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -280,7 +295,7 @@
Parameters
diff --git a/docs/docs/Classes.html b/docs/docs/Classes.html
index c9b17f62d08..652ce41827a 100644
--- a/docs/docs/Classes.html
+++ b/docs/docs/Classes.html
@@ -105,6 +105,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -148,6 +151,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -174,6 +183,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -191,6 +203,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -363,7 +378,7 @@
Declaration
@@ -851,7 +866,7 @@
Declaration
@@ -895,7 +910,7 @@
Declaration
@@ -935,7 +950,7 @@
Declaration
@@ -982,6 +997,46 @@
Declaration
+
+
+
+
+
+
+
+
+
+
This view controller contains a shipping address collection form. It renders a right bar button item that submits the form, so it must be shown inside a UINavigationController
. Depending on your configuration’s shippingType, the view controller may present a shipping method selection form after the user enters an address.
+
+
See more
+
+
+
Declaration
+
+
Objective-C
+
@interface STPShippingAddressViewController : UIViewController
+
+
+
+
Swift
+
class STPShippingAddressViewController
+
+
+
+
+
+
+
+
+
@@ -1108,7 +1163,7 @@ Declaration
diff --git a/docs/docs/Classes/STPAPIClient.html b/docs/docs/Classes/STPAPIClient.html
index b7b23320513..9eed4589b36 100644
--- a/docs/docs/Classes/STPAPIClient.html
+++ b/docs/docs/Classes/STPAPIClient.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -580,7 +595,7 @@
Parameters
diff --git a/docs/docs/Classes/STPAddCardViewController.html b/docs/docs/Classes/STPAddCardViewController.html
index e5f1c820955..a7e3576b528 100644
--- a/docs/docs/Classes/STPAddCardViewController.html
+++ b/docs/docs/Classes/STPAddCardViewController.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -443,7 +458,7 @@
Declaration
diff --git a/docs/docs/Classes/STPAddress.html b/docs/docs/Classes/STPAddress.html
index 8aab3b60db3..54d75120cf6 100644
--- a/docs/docs/Classes/STPAddress.html
+++ b/docs/docs/Classes/STPAddress.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -242,17 +257,17 @@
STPAddress
Declaration
Objective-C
-
@property ( readwrite , copy , nonatomic ) NSString * name ;
+
@property ( readwrite , copy , nonatomic , nullable ) NSString * name ;
Swift
-
var name : String ! { get set }
+
var name : String ? { get set }
@@ -277,17 +292,17 @@
Declaration
Declaration
Objective-C
-
@property ( readwrite , copy , nonatomic ) NSString * line1 ;
+
@property ( readwrite , copy , nonatomic , nullable ) NSString * line1 ;
Swift
-
var line1 : String ! { get set }
+
var line1 : String ? { get set }
@@ -312,17 +327,17 @@
Declaration
Declaration
Objective-C
-
@property ( readwrite , copy , nonatomic ) NSString * line2 ;
+
@property ( readwrite , copy , nonatomic , nullable ) NSString * line2 ;
Swift
-
var line2 : String ! { get set }
+
var line2 : String ? { get set }
@@ -347,17 +362,17 @@
Declaration
Declaration
Objective-C
-
@property ( readwrite , copy , nonatomic ) NSString * city ;
+
@property ( readwrite , copy , nonatomic , nullable ) NSString * city ;
Swift
-
var city : String ! { get set }
+
var city : String ? { get set }
@@ -382,17 +397,17 @@
Declaration
Declaration
Objective-C
-
@property ( readwrite , copy , nonatomic ) NSString * state ;
+
@property ( readwrite , copy , nonatomic , nullable ) NSString * state ;
Swift
-
var state : String ! { get set }
+
var state : String ? { get set }
@@ -417,17 +432,17 @@
Declaration
Declaration
Objective-C
-
@property ( readwrite , copy , nonatomic ) NSString * postalCode ;
+
@property ( readwrite , copy , nonatomic , nullable ) NSString * postalCode ;
Swift
-
var postalCode : String ! { get set }
+
var postalCode : String ? { get set }
@@ -452,17 +467,17 @@
Declaration
Declaration
Objective-C
-
@property ( readwrite , copy , nonatomic ) NSString * country ;
+
@property ( readwrite , copy , nonatomic , nullable ) NSString * country ;
Swift
-
var country : String ! { get set }
+
var country : String ? { get set }
@@ -487,17 +502,17 @@
Declaration
Declaration
Objective-C
-
@property ( readwrite , copy , nonatomic ) NSString * phone ;
+
@property ( readwrite , copy , nonatomic , nullable ) NSString * phone ;
Swift
-
var phone : String ! { get set }
+
var phone : String ? { get set }
@@ -522,17 +537,17 @@
Declaration
Declaration
Objective-C
-
@property ( readwrite , copy , nonatomic ) NSString * email ;
+
@property ( readwrite , copy , nonatomic , nullable ) NSString * email ;
Swift
-
var email : String ! { get set }
+
var email : String ? { get set }
@@ -545,7 +560,7 @@
Declaration
diff --git a/docs/docs/Classes/STPBankAccount.html b/docs/docs/Classes/STPBankAccount.html
index 3caaeb745b9..bbed01f694a 100644
--- a/docs/docs/Classes/STPBankAccount.html
+++ b/docs/docs/Classes/STPBankAccount.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -648,7 +663,7 @@
Declaration
diff --git a/docs/docs/Classes/STPBankAccountParams.html b/docs/docs/Classes/STPBankAccountParams.html
index aa7c48af166..a9a6d8b9229 100644
--- a/docs/docs/Classes/STPBankAccountParams.html
+++ b/docs/docs/Classes/STPBankAccountParams.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -477,7 +492,7 @@
Declaration
diff --git a/docs/docs/Classes/STPCard.html b/docs/docs/Classes/STPCard.html
index 49c94ec70c8..01a58390398 100644
--- a/docs/docs/Classes/STPCard.html
+++ b/docs/docs/Classes/STPCard.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -969,7 +984,7 @@
Declaration
diff --git a/docs/docs/Classes/STPCardParams.html b/docs/docs/Classes/STPCardParams.html
index fceefefe5a6..b9a8e12df4c 100644
--- a/docs/docs/Classes/STPCardParams.html
+++ b/docs/docs/Classes/STPCardParams.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -591,7 +606,7 @@
Return Value
diff --git a/docs/docs/Classes/STPCardValidator.html b/docs/docs/Classes/STPCardValidator.html
index f543d191c9b..8aa0fa51176 100644
--- a/docs/docs/Classes/STPCardValidator.html
+++ b/docs/docs/Classes/STPCardValidator.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -837,7 +852,7 @@
Return Value
diff --git a/docs/docs/Classes/STPCustomer.html b/docs/docs/Classes/STPCustomer.html
index 8afa206d321..2385be83363 100644
--- a/docs/docs/Classes/STPCustomer.html
+++ b/docs/docs/Classes/STPCustomer.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -424,7 +439,7 @@
Declaration
diff --git a/docs/docs/Classes/STPCustomerDeserializer.html b/docs/docs/Classes/STPCustomerDeserializer.html
index 24b607b80a7..5c0e7ea8163 100644
--- a/docs/docs/Classes/STPCustomerDeserializer.html
+++ b/docs/docs/Classes/STPCustomerDeserializer.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -438,7 +453,7 @@
Declaration
diff --git a/docs/docs/Classes/STPImageLibrary.html b/docs/docs/Classes/STPImageLibrary.html
index 8b676a586bd..983fdf63118 100644
--- a/docs/docs/Classes/STPImageLibrary.html
+++ b/docs/docs/Classes/STPImageLibrary.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -616,7 +631,7 @@
Declaration
diff --git a/docs/docs/Classes/STPPaymentActivityIndicatorView.html b/docs/docs/Classes/STPPaymentActivityIndicatorView.html
index 2dcdbe1bc2d..f647aa69451 100644
--- a/docs/docs/Classes/STPPaymentActivityIndicatorView.html
+++ b/docs/docs/Classes/STPPaymentActivityIndicatorView.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -335,7 +350,7 @@
Declaration
diff --git a/docs/docs/Classes/STPPaymentCardTextField.html b/docs/docs/Classes/STPPaymentCardTextField.html
index 6f46475946c..44ef77b0711 100644
--- a/docs/docs/Classes/STPPaymentCardTextField.html
+++ b/docs/docs/Classes/STPPaymentCardTextField.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -1608,7 +1623,7 @@
Declaration
diff --git a/docs/docs/Classes/STPPaymentConfiguration.html b/docs/docs/Classes/STPPaymentConfiguration.html
index 957e9ff5786..18877b131c8 100644
--- a/docs/docs/Classes/STPPaymentConfiguration.html
+++ b/docs/docs/Classes/STPPaymentConfiguration.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -259,7 +274,7 @@
Declaration
@@ -294,7 +309,7 @@
Declaration
@@ -330,7 +345,7 @@
Declaration
@@ -366,7 +381,78 @@
Declaration
+
+
+
+
+
+
+
+
+
+
+
The billing address fields the user must fill out when prompted for their shipping info.
+
+
+
+
Declaration
+
+
Objective-C
+
@property ( assign , readwrite , nonatomic )
+ PKAddressField requiredShippingAddressFields ;
+
+
+
+
Swift
+
var requiredShippingAddressFields : Int32 { get set }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The type of shipping for this purchase. This property sets the labels displayed when the user is prompted for shipping info, and whether they should also be asked to select a shipping method. The default value is STPShippingTypeShipping.
+
+
+
+
Declaration
+
+
Objective-C
+
@property ( assign , readwrite , nonatomic ) STPShippingType shippingType ;
+
+
+
+
+
@@ -401,7 +487,7 @@ Declaration
@@ -437,7 +523,7 @@ Declaration
@@ -472,7 +558,7 @@ Declaration
@@ -485,7 +571,7 @@ Declaration
diff --git a/docs/docs/Classes/STPPaymentContext.html b/docs/docs/Classes/STPPaymentContext.html
index 854f98cc485..ee0b1a7cfaa 100644
--- a/docs/docs/Classes/STPPaymentContext.html
+++ b/docs/docs/Classes/STPPaymentContext.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -257,7 +272,7 @@
Declaration
@@ -346,7 +361,7 @@
Return Value
@@ -381,7 +396,7 @@
Declaration
@@ -416,7 +431,7 @@
Declaration
@@ -451,7 +466,7 @@
Declaration
@@ -487,7 +502,7 @@
Declaration
@@ -517,7 +532,7 @@
Declaration
@@ -553,7 +568,7 @@
Declaration
@@ -588,7 +603,7 @@
Declaration
@@ -624,7 +639,7 @@
Declaration
@@ -660,7 +675,114 @@
Declaration
+
+
+
+
+
+
+
+
+
+
+
The user’s currently selected shipping method. May be nil.
+
+
+
+
Declaration
+
+
Objective-C
+
@property ( readonly , nonatomic , nullable )
+ PKShippingMethod * selectedShippingMethod ;
+
+
+
+
Swift
+
var selectedShippingMethod : UnsafeMutablePointer
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
An array of STPShippingMethod objects that describe the supported shipping methods. May be nil.
+
+
+
+
Declaration
+
+
Objective-C
+
@property ( readonly , nonatomic , nullable )
+ NSArray < PKShippingMethod *> * shippingMethods ;
+
+
+
+
Swift
+
var shippingMethods : [ Any ]? { get }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
The user’s shipping address. May be nil.
+
+
+
+
Declaration
+
+
Objective-C
+
@property ( readonly , nonatomic , nullable ) STPAddress * shippingAddress ;
+
+
+
+
Swift
+
var shippingAddress : STPAddress ? { get }
+
+
+
+
@@ -701,7 +823,7 @@ Declaration
@@ -742,7 +864,7 @@ Declaration
@@ -787,7 +909,7 @@ Declaration
@@ -826,7 +948,7 @@ Declaration
@@ -861,7 +983,7 @@ Declaration
@@ -896,7 +1018,7 @@ Declaration
@@ -931,7 +1053,77 @@ Declaration
+
+
+
+
+
+
+
+
+
+
+
This creates, configures, and appropriately presents a view controller for collecting shipping address and shipping method on top of the payment context’s hostViewController
. It’ll be dismissed automatically when the user is done entering their shipping info.
+
+
+
+
Declaration
+
+
Objective-C
+
- ( void ) presentShippingViewController ;
+
+
+
+
Swift
+
func presentShippingViewController ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
This creates, configures, and appropriately pushes a view controller for collecting shipping address and shipping method onto the navigation stack of the context’s hostViewController
. It’ll be popped automatically when the user is done entering their shipping info.
+
+
+
+
Declaration
+
+
Objective-C
+
- ( void ) pushShippingViewController ;
+
+
+
+
Swift
+
func pushShippingViewController ()
+
+
+
+
@@ -966,7 +1158,7 @@ Declaration
@@ -979,7 +1171,7 @@ Declaration
diff --git a/docs/docs/Classes/STPPaymentMethodsViewController.html b/docs/docs/Classes/STPPaymentMethodsViewController.html
index 619c49e5609..2d5974b3e58 100644
--- a/docs/docs/Classes/STPPaymentMethodsViewController.html
+++ b/docs/docs/Classes/STPPaymentMethodsViewController.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -418,6 +433,61 @@
Declaration
+
+
+
+
+
+
+
+
If you’re pushing STPPaymentMethodsViewController
onto an existing UINavigationController
’s stack, you should use this method to dismiss it, since it may have pushed an additional add card view controller onto the navigation controller’s stack.
+
+
+
+
Declaration
+
+
Objective-C
+
- ( void ) dismissWithCompletion :( nullable STPVoidBlock ) completion ;
+
+
+
+
+
+
Parameters
+
+
+
+
+
+ completion
+
+
+
+
+
The callback to run after the view controller is dismissed. You may specify nil for this parameter.
+
+
+
+
+
+
+
+
+
+
+
@@ -426,7 +496,7 @@
Declaration
diff --git a/docs/docs/Classes/STPPaymentResult.html b/docs/docs/Classes/STPPaymentResult.html
index 7af29e9c772..7dbc6eddc13 100644
--- a/docs/docs/Classes/STPPaymentResult.html
+++ b/docs/docs/Classes/STPPaymentResult.html
@@ -106,6 +106,9 @@
STPPaymentResult
+
+ STPShippingAddressViewController
+
STPTheme
@@ -149,6 +152,12 @@
STPPaymentStatus
+
+ STPShippingStatus
+
+
+ STPShippingType
+
@@ -175,6 +184,9 @@
STPPaymentMethodsViewControllerDelegate
+
+ STPShippingAddressViewControllerDelegate
+
STPSource
@@ -192,6 +204,9 @@
STPErrorBlock
+
+ STPShippingMethodsCompletionBlock
+
STPTokenCompletionBlock
@@ -300,7 +315,7 @@
Declaration
diff --git a/docs/docs/Classes/STPShippingAddressViewController.html b/docs/docs/Classes/STPShippingAddressViewController.html
new file mode 100644
index 00000000000..02de3ee54bb
--- /dev/null
+++ b/docs/docs/Classes/STPShippingAddressViewController.html
@@ -0,0 +1,561 @@
+
+
+
+
STPShippingAddressViewController Class Reference
+
+
+
+
+
+
+
+
+
+