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
29a42924
Commit
29a42924
authored
8 years ago
by
Brent Gulanowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update for API changes.
parent
4764ec5f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
CheckoutViewController.m
...d/Mobile Buy SDK Advanced Sample/CheckoutViewController.m
+2
-2
CollectionListViewController.m
...le Buy SDK Advanced Sample/CollectionListViewController.m
+1
-1
PreCheckoutViewController.m
...obile Buy SDK Advanced Sample/PreCheckoutViewController.m
+1
-1
ProductListViewController.m
...obile Buy SDK Advanced Sample/ProductListViewController.m
+1
-1
ShippingRatesTableViewController.m
...uy SDK Advanced Sample/ShippingRatesTableViewController.m
+1
-1
No files found.
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/CheckoutViewController.m
View file @
29a42924
...
...
@@ -208,7 +208,7 @@ NSString * const MerchantId = @"";
[
self
addCreditCardToCheckout
:
^
(
BOOL
success
,
id
<
BUYPaymentToken
>
token
)
{
if
(
success
)
{
[
welf
.
client
completeCheckout
:
welf
.
checkout
paymentToken
:
token
completion
:^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
[
welf
.
client
completeCheckout
WithToken
:
welf
.
checkout
.
token
paymentToken
:
token
completion
:^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
if
(
error
==
nil
&&
checkout
)
{
NSLog
(
@"Successfully completed checkout"
);
...
...
@@ -372,7 +372,7 @@ NSString * const MerchantId = @"";
[[
UIApplication
sharedApplication
]
setNetworkActivityIndicatorVisible
:
YES
];
[
self
.
client
getCheckout
:
self
.
checkout
completion
:
^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
[
self
.
client
getCheckout
WithToken
:
self
.
checkout
.
token
completion
:
^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
[[
UIApplication
sharedApplication
]
setNetworkActivityIndicatorVisible
:
NO
];
...
...
This diff is collapsed.
Click to expand it.
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/CollectionListViewController.m
View file @
29a42924
...
...
@@ -54,7 +54,7 @@
appId
:
APP_ID
];
[[
UIApplication
sharedApplication
]
setNetworkActivityIndicatorVisible
:
YES
];
[
self
.
client
getCollections
:
^
(
NSArray
*
collections
,
NSError
*
error
)
{
[
self
.
client
getCollections
Page
:
1
completion
:
^
(
NSArray
*
collections
,
NSUInteger
page
,
BOOL
reachedEnd
,
NSError
*
error
)
{
[[
UIApplication
sharedApplication
]
setNetworkActivityIndicatorVisible
:
NO
];
if
(
error
==
nil
&&
collections
)
{
...
...
This diff is collapsed.
Click to expand it.
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/PreCheckoutViewController.m
View file @
29a42924
...
...
@@ -237,7 +237,7 @@ typedef NS_ENUM(NSInteger, UITableViewDiscountGiftCardSection) {
[[
UIApplication
sharedApplication
]
setNetworkActivityIndicatorVisible
:
YES
];
[
self
.
client
applyGiftCard
With
Code
:[
alertController
.
textFields
[
0
]
text
]
toCheckout
:
self
.
checkout
completion
:^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
[
self
.
client
applyGiftCardCode
:[
alertController
.
textFields
[
0
]
text
]
toCheckout
:
self
.
checkout
completion
:^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{
[[
UIApplication
sharedApplication
]
setNetworkActivityIndicatorVisible
:
NO
];
...
...
This diff is collapsed.
Click to expand it.
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/ProductListViewController.m
View file @
29a42924
...
...
@@ -162,7 +162,7 @@
{
[
self
.
collectionOperation
cancel
];
[[
UIApplication
sharedApplication
]
setNetworkActivityIndicatorVisible
:
YES
];
self
.
collectionOperation
=
[
self
.
client
getProductsPage
:
1
inCollection
:
self
.
collection
.
collectionId
sortOrder
:
collectionSort
completion
:^
(
NSArray
*
products
,
NSUInteger
page
,
BOOL
reachedEnd
,
NSError
*
error
)
{
self
.
collectionOperation
=
[
self
.
client
getProductsPage
:
1
inCollection
:
self
.
collection
.
identifier
sortOrder
:
collectionSort
completion
:^
(
NSArray
*
products
,
NSUInteger
page
,
BOOL
reachedEnd
,
NSError
*
error
)
{
[[
UIApplication
sharedApplication
]
setNetworkActivityIndicatorVisible
:
NO
];
if
(
error
==
nil
&&
products
)
{
...
...
This diff is collapsed.
Click to expand it.
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/ShippingRatesTableViewController.m
View file @
29a42924
...
...
@@ -88,7 +88,7 @@
-
(
void
)
getShippingRates
{
[
self
.
client
getShippingRatesForCheckout
:
self
.
checkout
completion
:
^
(
NSArray
*
shippingRates
,
BUYStatus
status
,
NSError
*
error
)
{
[
self
.
client
getShippingRatesForCheckout
WithToken
:
self
.
checkout
.
token
completion
:
^
(
NSArray
*
shippingRates
,
BUYStatus
status
,
NSError
*
error
)
{
if
([
shippingRates
count
]
>
0
&&
!
error
)
{
[
self
didGetShippingRates
:
shippingRates
];
}
...
...
This diff is collapsed.
Click to expand it.
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