Reputation: 41510
Does Apple Pay store the shipping address? Apple's own documentation gives confusing/conflicting information.
In Apple's UX guidelines, it says:
After the user authorizes the purchase, Apple Pay responds by providing the billing and shipping addresses (if needed), along with the payment information.
But in PKPaymentRequest
documentation, under shipppingAddress
property, it says:
If you already have a shipping address on file, set it here. The user can either use the address you specify or select a different address.
Upvotes: 1
Views: 974
Reputation: 2626
This isn't conflicting information. You're looking at two different parts of the process. In the first part, you're requesting that the user makes a payment. This is where you specify the cost, information required, and information you already have available. If you set the shippingAddress
property, then Apple can give the user a choice between your address, or specifying a different one. Setting this property is not required, however, and Apple will collect and provide a shipping address to you if you request it. It is simply a convenience for users.
Once your payment is authorized, then Apple Pay will respond with the shipping address if requested. This address may be the one you provided earlier, but it could also be a different address specified during the checkout procedure.
Upvotes: 1