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
b7248c54
Commit
b7248c54
authored
Mar 14, 2016
by
David Muzi
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #103 from Shopify/public/apple-pay-shop-fix
Public/apple pay shop fix
parents
78acdd90
dd89e6fd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
BUYError.m
Mobile Buy SDK/Mobile Buy SDK/Models/BUYError.m
+1
-1
BUYApplePayHelpers.m
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayHelpers.m
+3
-1
BUYViewController.m
...y SDK/Mobile Buy SDK/View Controllers/BUYViewController.m
+1
-1
No files found.
Mobile Buy SDK/Mobile Buy SDK/Models/BUYError.m
View file @
b7248c54
...
...
@@ -32,7 +32,7 @@ NSString * const BUYShopifyError = @"BUYShopifyError";
-
(
NSString
*
)
description
{
return
[
[
self
userInfo
]
description
];
return
[
NSString
stringWithFormat
:
@"Error code %td: %@"
,
self
.
code
,
[
self
userInfo
]
];
}
@end
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayHelpers.m
View file @
b7248c54
...
...
@@ -331,7 +331,9 @@ const NSTimeInterval PollDelay = 0.5;
[
NSThread
sleepForTimeInterval
:
PollDelay
];
}
}
completion
(
checkoutStatus
==
BUYStatusComplete
?
PKPaymentAuthorizationStatusSuccess
:
PKPaymentAuthorizationStatusFailure
);
dispatch_async
(
dispatch_get_main_queue
(),
^
{
completion
(
checkoutStatus
==
BUYStatusComplete
?
PKPaymentAuthorizationStatusSuccess
:
PKPaymentAuthorizationStatusFailure
);
});
});
}
...
...
Mobile Buy SDK/Mobile Buy SDK/View Controllers/BUYViewController.m
View file @
b7248c54
...
...
@@ -147,7 +147,7 @@ NSString * BUYURLKey = @"url";
__block
NSError
*
checkoutError
=
nil
;
// download the shop
if
(
self
.
shop
!
=
nil
)
{
if
(
self
.
shop
=
=
nil
)
{
dispatch_group_enter
(
group
);
[
self
loadShopWithCallback
:
^
(
BOOL
success
,
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