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
b690365a
Commit
b690365a
authored
Nov 03, 2015
by
David Muzi
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #49 from Shopify/bugfix/apple-pay
Apple Pay bug fixes
parents
bd8eb20d
cdce7fc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
BUYApplePayAdditions.m
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayAdditions.m
+1
-1
BUYViewController.m
...y SDK/Mobile Buy SDK/View Controllers/BUYViewController.m
+2
-0
No files found.
Mobile Buy SDK/Mobile Buy SDK/Utils/BUYApplePayAdditions.m
View file @
b690365a
...
...
@@ -47,7 +47,7 @@
if
(
hasDiscount
||
[
self
.
lineItems
count
]
>
1
)
{
NSDecimalNumber
*
lineItemSubtotal
=
[
NSDecimalNumber
zero
];
for
(
BUYLineItem
*
lineItem
in
self
.
lineItems
)
{
lineItemSubtotal
=
[
lineItemSubtotal
decimalNumberByAdding
:
lineItem
.
p
rice
];
lineItemSubtotal
=
[
lineItemSubtotal
decimalNumberByAdding
:
lineItem
.
lineP
rice
];
}
[
summaryItems
addObject
:[
PKPaymentSummaryItem
summaryItemWithLabel
:
@"CART TOTAL"
amount
:
lineItemSubtotal
]];
}
...
...
Mobile Buy SDK/Mobile Buy SDK/View Controllers/BUYViewController.m
View file @
b690365a
...
...
@@ -117,6 +117,8 @@ NSString * BUYURLKey = @"url";
-
(
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
)
{
// 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