PashaN
PashaN

Reputation: 454

How to pull billing address from apple pay

I'm trying to implement ApplePay, but my server api requires me to send billing address. Is there a way to pull billing address that i entered when apple pay screen appeared and i entered it? Any help would be appreciated.

Upvotes: 1

Views: 3105

Answers (1)

Rashwan L
Rashwan L

Reputation: 38833

This is a property in PKPayment. A reference from Apple developer site.

To initiate a payment, your app creates a payment request. This request includes the subtotal for the services and goods purchased, as well as any additional charges for tax, shipping, or discounts. Pass this request to a payment authorization view controller, which displays the request to the user and prompts for any needed information, such as a shipping or billing address.

I can recommend you to read these two links above.

Upvotes: 5

Related Questions