Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
shopify_iossdk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cemarose
shopify_iossdk
Commits
8efea1b1
Commit
8efea1b1
authored
Nov 11, 2015
by
Rune Madsen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #56 from Shopify/runmad.fix-cncontact-usage
Fix deprecated property usage for Apple Pay
parents
256b88de
f51f4e49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
BUYApplePayHelpers.m
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayHelpers.m
+11
-5
No files found.
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayHelpers.m
View file @
8efea1b1
...
...
@@ -91,11 +91,17 @@ const NSTimeInterval PollDelay = 0.5;
// We now update the checkout with our new found data so that you can ship the products to the right address, and we collect whatever else we need.
self
.
checkout
.
partialAddresses
=
NO
;
self
.
checkout
.
shippingAddress
=
self
.
checkout
.
requiresShipping
?
[
BUYAddress
buy_addressFromRecord
:[
payment
shippingAddress
]]
:
nil
;
self
.
checkout
.
billingAddress
=
[
BUYAddress
buy_addressFromRecord
:[
payment
billingAddress
]];
self
.
checkout
.
email
=
[
BUYAddress
buy_emailFromRecord
:[
payment
billingAddress
]];
if
(
self
.
checkout
.
email
==
nil
)
{
self
.
checkout
.
email
=
[
BUYAddress
buy_emailFromRecord
:[
payment
shippingAddress
]];
if
([
payment
respondsToSelector
:
@selector
(
shippingContact
)])
{
self
.
checkout
.
email
=
payment
.
shippingContact
.
emailAddress
;
self
.
checkout
.
shippingAddress
=
self
.
checkout
.
requiresShipping
?
[
BUYAddress
buy_addressFromContact
:
payment
.
shippingContact
]
:
nil
;
}
else
{
self
.
checkout
.
email
=
[
BUYAddress
buy_emailFromRecord
:
payment
.
shippingAddress
];
self
.
checkout
.
shippingAddress
=
self
.
checkout
.
requiresShipping
?
[
BUYAddress
buy_addressFromRecord
:
payment
.
shippingAddress
]
:
nil
;
}
if
([
payment
respondsToSelector
:
@selector
(
billingContact
)])
{
self
.
checkout
.
billingAddress
=
[
BUYAddress
buy_addressFromContact
:
payment
.
billingContact
];
}
else
{
self
.
checkout
.
billingAddress
=
[
BUYAddress
buy_addressFromRecord
:
payment
.
billingAddress
];
}
[
self
.
client
updateCheckout
:
self
.
checkout
completion
:
^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment