Reputation: 454
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
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