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
c60138e3
Commit
c60138e3
authored
Mar 02, 2016
by
Brent Gulanowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Invoke completion block on main dispatch queue.
Also improve error description.
parent
93b8a594
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
BUYError.m
Mobile Buy SDK/Mobile Buy SDK/Models/BUYError.m
+1
-1
BUYApplePayHelpers.m
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayHelpers.m
+2
-0
No files found.
Mobile Buy SDK/Mobile Buy SDK/Models/BUYError.m
View file @
c60138e3
...
...
@@ -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 @
c60138e3
...
...
@@ -331,8 +331,10 @@ const NSTimeInterval PollDelay = 0.5;
[
NSThread
sleepForTimeInterval
:
PollDelay
];
}
}
dispatch_async
(
dispatch_get_main_queue
(),
^
{
completion
(
checkoutStatus
==
BUYStatusComplete
?
PKPaymentAuthorizationStatusSuccess
:
PKPaymentAuthorizationStatusFailure
);
});
});
}
@end
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