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
20dab27d
Commit
20dab27d
authored
May 24, 2016
by
Gabriel O'Flaherty-Chan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redeclare checkout property in private interface
parent
02444162
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
BUYApplePayAuthorizationDelegate.m
...K/Mobile Buy SDK/Utils/BUYApplePayAuthorizationDelegate.m
+7
-5
No files found.
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayAuthorizationDelegate.m
View file @
20dab27d
...
@@ -40,6 +40,8 @@ const NSTimeInterval PollDelay = 0.5;
...
@@ -40,6 +40,8 @@ const NSTimeInterval PollDelay = 0.5;
@interface
BUYApplePayAuthorizationDelegate
()
@interface
BUYApplePayAuthorizationDelegate
()
@property
(
nonatomic
,
strong
)
BUYCheckout
*
checkout
;
@property
(
nonatomic
,
strong
)
NSArray
*
shippingRates
;
@property
(
nonatomic
,
strong
)
NSArray
*
shippingRates
;
@property
(
nonatomic
,
strong
)
NSError
*
lastError
;
@property
(
nonatomic
,
strong
)
NSError
*
lastError
;
...
@@ -92,14 +94,14 @@ const NSTimeInterval PollDelay = 0.5;
...
@@ -92,14 +94,14 @@ const NSTimeInterval PollDelay = 0.5;
[
self
.
client
updateCheckout
:
self
.
checkout
completion
:
^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
[
self
.
client
updateCheckout
:
self
.
checkout
completion
:
^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
if
(
checkout
&&
error
==
nil
)
{
if
(
checkout
&&
error
==
nil
)
{
_
checkout
=
checkout
;
self
.
checkout
=
checkout
;
id
<
BUYPaymentToken
>
token
=
[[
BUYApplePayToken
alloc
]
initWithPaymentToken
:
payment
.
token
];
id
<
BUYPaymentToken
>
token
=
[[
BUYApplePayToken
alloc
]
initWithPaymentToken
:
payment
.
token
];
//Now that the checkout is up to date, call complete.
//Now that the checkout is up to date, call complete.
[
self
.
client
completeCheckout
:
checkout
paymentToken
:
token
completion
:^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
[
self
.
client
completeCheckout
:
checkout
paymentToken
:
token
completion
:^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
if
(
checkout
&&
error
==
nil
)
{
if
(
checkout
&&
error
==
nil
)
{
_
checkout
=
checkout
;
self
.
checkout
=
checkout
;
[
self
pollUntilCheckoutIsComplete
:
self
.
checkout
completion
:
completion
];
[
self
pollUntilCheckoutIsComplete
:
self
.
checkout
completion
:
completion
];
}
}
...
@@ -150,7 +152,7 @@ const NSTimeInterval PollDelay = 0.5;
...
@@ -150,7 +152,7 @@ const NSTimeInterval PollDelay = 0.5;
[
self
.
client
updateCheckout
:
self
.
checkout
completion
:
^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
[
self
.
client
updateCheckout
:
self
.
checkout
completion
:
^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
if
(
checkout
&&
error
==
nil
)
{
if
(
checkout
&&
error
==
nil
)
{
_
checkout
=
checkout
;
self
.
checkout
=
checkout
;
}
}
else
{
else
{
self
.
lastError
=
error
;
self
.
lastError
=
error
;
...
@@ -174,7 +176,7 @@ const NSTimeInterval PollDelay = 0.5;
...
@@ -174,7 +176,7 @@ const NSTimeInterval PollDelay = 0.5;
[
self
.
client
updateCheckout
:
self
.
checkout
completion
:
^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
[
self
.
client
updateCheckout
:
self
.
checkout
completion
:
^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
if
(
checkout
&&
error
==
nil
)
{
if
(
checkout
&&
error
==
nil
)
{
_
checkout
=
checkout
;
self
.
checkout
=
checkout
;
[
self
getShippingRates
:
self
.
checkout
completion
:
completion
];
[
self
getShippingRates
:
self
.
checkout
completion
:
completion
];
}
}
else
{
else
{
...
@@ -218,7 +220,7 @@ const NSTimeInterval PollDelay = 0.5;
...
@@ -218,7 +220,7 @@ const NSTimeInterval PollDelay = 0.5;
if
([
shippingMethods
count
]
>
0
)
{
if
([
shippingMethods
count
]
>
0
)
{
[
self
selectShippingMethod
:
shippingMethods
[
0
]
completion
:
^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
[
self
selectShippingMethod
:
shippingMethods
[
0
]
completion
:
^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
if
(
checkout
&&
error
==
nil
)
{
if
(
checkout
&&
error
==
nil
)
{
_
checkout
=
checkout
;
self
.
checkout
=
checkout
;
}
}
completion
(
error
?
PKPaymentAuthorizationStatusFailure
:
PKPaymentAuthorizationStatusSuccess
,
shippingMethods
,
[
self
.
checkout
buy_summaryItemsWithShopName
:
self
.
shopName
]);
completion
(
error
?
PKPaymentAuthorizationStatusFailure
:
PKPaymentAuthorizationStatusSuccess
,
shippingMethods
,
[
self
.
checkout
buy_summaryItemsWithShopName
:
self
.
shopName
]);
}];
}];
...
...
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