diff --git a/Example/Standard Integration (Swift)/CheckoutViewController.swift b/Example/Standard Integration (Swift)/CheckoutViewController.swift index 88b9c5e15cb..b676ce74db8 100644 --- a/Example/Standard Integration (Swift)/CheckoutViewController.swift +++ b/Example/Standard Integration (Swift)/CheckoutViewController.swift @@ -247,6 +247,8 @@ class CheckoutViewController: UIViewController, STPPaymentContextDelegate { self.present(alertController, animated: true, completion: nil) } + // Note: this delegate method is optional. If you do not need to collect a + // shipping method from your user, you should not implement this method. func paymentContext(_ paymentContext: STPPaymentContext, didUpdateShippingAddress address: STPAddress, completion: @escaping STPShippingMethodsCompletionBlock) { let upsGround = PKShippingMethod() upsGround.amount = 0