From e9907c163adc15ce3a9371ae41e483fb087ddc39 Mon Sep 17 00:00:00 2001 From: Ben Guo Date: Mon, 30 Oct 2017 10:46:32 -0400 Subject: [PATCH] add comment about optional shipping method delegate to example app --- .../Standard Integration (Swift)/CheckoutViewController.swift | 2 ++ 1 file changed, 2 insertions(+) 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