# Streamline Checkout with Shipping Options in Apple Pay

DevFeed: [Streamline Checkout with Shipping Options in Apple Pay](<https://devfeed.tech/articles/streamline-checkout-with-shipping-options-in-apple-pay-27018.md>)

Original publisher: [Read original article](<https://medium.com/square-corner-blog/streamline-checkout-with-shipping-options-in-apple-pay-7f3836245950?source=rss----3650599ae4e2---4>)

Author: Ajay Anandan

Published: 2019-03-28T18:12:50Z

Content type: release

Language: en

Sources: [Square Corner Blog - Medium](<https://devfeed.tech/sources/square-corner-blog-medium.md>)

Topics: [API](<https://devfeed.tech/topics/api.md>), [web applications](<https://devfeed.tech/topics/web-applications.md>), [Web](<https://devfeed.tech/topics/web.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apple-pay](<https://devfeed.tech/tags/apple-pay.md>), [applications](<https://devfeed.tech/tags/applications.md>), [checkout](<https://devfeed.tech/tags/checkout.md>), [developer](<https://devfeed.tech/tags/developer.md>), [ecommerce](<https://devfeed.tech/tags/ecommerce.md>), [payments](<https://devfeed.tech/tags/payments.md>), [platform](<https://devfeed.tech/tags/platform.md>), [square](<https://devfeed.tech/tags/square.md>), [update](<https://devfeed.tech/tags/update.md>), [web](<https://devfeed.tech/tags/web.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

## AI overview

Square's Online Payments API now supports shipping options in Apple Pay on the Web. Developers can collect and validate shipping addresses, update shipping options, fees, taxes, line items, and totals during checkout, and receive the final shipping details after authorization.

## Source excerpt

Use Apple Pay to Handle Selecting Shipping OptionsHeads up, we've moved! If you'd like to continue keeping up with the latest technical content from Square please visit us at our new home https://developer.squareup.com/blog A little over a year ago, we added support for Apple Pay on the Web in our Online Payments APIs to help developers easily integrate Apple Pay into their websites. However, we know eCommerce checkouts don't stop with payments -- you also need to collect additional details for fulfilling and shipping orders. Specifically, you need to collect a shipping address and offer different shipping options based on that address. You might provide a free shipping option and a paid shipping option, for those who need a faster delivery. Even though our Online Payments APIs supported collecting a shipping address from within Apple Pay, you had to handle shipping options outside the Apple Pay experience. With today's update, Square's API now supports the entire checkout experience for Apple Pay on the Web, including support for shipping options. You can take payments, ask for and validate the shipping address, and provide various shipping options, all within Apple Pay's web experience. This speeds up checkout, which in turn increases conversions, with easy to use checkout flows via Apple Pay on web. How Apple Pay Shipping Options Work:Add shipping options You can define any number of shipping options in the PaymentRequest object. The first shipping option will be the default value shown. https://medium.com/media/78471b15e4db3e80ebda3c7748597d30/hrefValidate a shipping address When your customer chooses a shipping address, the shippingContactChanged callback will be invoked. You can use this callback to validate the shipping address, add new fees and/or taxes based on the shipping address, and update the shipping options. Errors shown when a shipping address isn't supported by that merchantShipping options and taxes are updated when they choose a Canadian addressht