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
cdce7fc7
Commit
cdce7fc7
authored
Nov 03, 2015
by
David Muzi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default Apple Pay status to failure so cancellation does not appear as a success
parent
c07f60c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
BUYViewController.m
...y SDK/Mobile Buy SDK/View Controllers/BUYViewController.m
+2
-0
No files found.
Mobile Buy SDK/Mobile Buy SDK/View Controllers/BUYViewController.m
View file @
cdce7fc7
...
@@ -117,6 +117,8 @@ NSString * BUYURLKey = @"url";
...
@@ -117,6 +117,8 @@ NSString * BUYURLKey = @"url";
-
(
void
)
startApplePayCheckout
:
(
BUYCheckout
*
)
checkout
-
(
void
)
startApplePayCheckout
:
(
BUYCheckout
*
)
checkout
{
{
// Default to the failure state, since cancelling a payment would not update the state and thus appear as a success
self
.
paymentAuthorizationStatus
=
PKPaymentAuthorizationStatusFailure
;
if
(
self
.
shop
==
nil
&&
self
.
isLoadingShop
==
NO
)
{
if
(
self
.
shop
==
nil
&&
self
.
isLoadingShop
==
NO
)
{
// since requests are sent serially, this will return before the checkout is created
// since requests are sent serially, this will return before the checkout is created
...
...
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