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
5eb4ae03
Commit
5eb4ae03
authored
May 12, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename token file, factor out test token into separate file. Fix spelling.
parent
676254b8
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
121 additions
and
44 deletions
+121
-44
BUYApplePayTestToken.h
Mobile Buy SDK/Mobile Buy SDK Tests/BUYApplePayTestToken.h
+37
-0
BUYApplePayTestToken.m
Mobile Buy SDK/Mobile Buy SDK Tests/BUYApplePayTestToken.m
+51
-0
BUYApplePayTokenTests.m
Mobile Buy SDK/Mobile Buy SDK Tests/BUYApplePayTokenTests.m
+1
-26
BUYClientTest.m
Mobile Buy SDK/Mobile Buy SDK Tests/BUYClientTest.m
+2
-1
BUYIntegrationTest.m
Mobile Buy SDK/Mobile Buy SDK Tests/BUYIntegrationTest.m
+1
-2
project.pbxproj
Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj
+20
-6
Buy.h
Mobile Buy SDK/Mobile Buy SDK/Buy.h
+1
-1
BUYClient.h
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient.h
+2
-2
BUYClient.m
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient.m
+1
-1
BUYApplePayToken.h
Mobile Buy SDK/Mobile Buy SDK/Models/BUYApplePayToken.h
+1
-1
BUYApplePayToken.m
Mobile Buy SDK/Mobile Buy SDK/Models/BUYApplePayToken.m
+1
-1
BUYCreditCardToken.h
Mobile Buy SDK/Mobile Buy SDK/Models/BUYCreditCardToken.h
+1
-1
BUYCreditCardToken.m
Mobile Buy SDK/Mobile Buy SDK/Models/BUYCreditCardToken.m
+1
-1
BUYPaymentToken.h
Mobile Buy SDK/Mobile Buy SDK/Models/BUYPaymentToken.h
+0
-0
Buy.h
Mobile Buy SDK/Mobile Buy SDK/Static Framework/Buy.h
+1
-1
No files found.
Mobile Buy SDK/Mobile Buy SDK Tests/BUYApplePayTestToken.h
0 → 100644
View file @
5eb4ae03
//
// BUYApplePayTestToken.h
// Mobile Buy SDK
//
// Created by Shopify.
// Copyright (c) 2015 Shopify Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#import <Foundation/Foundation.h>
#import <PassKit/PassKit.h>
static
NSString
*
const
BUYTestingToken
=
@"7fc9b0e9-ed1c-4d77-9bac-78c904aa03c1"
;
@interface
BUYApplePayTestToken
:
PKPaymentToken
+
(
instancetype
)
validToken
;
+
(
instancetype
)
invalidToken
;
@end
Mobile Buy SDK/Mobile Buy SDK Tests/BUYApplePayTestToken.m
0 → 100644
View file @
5eb4ae03
//
// BUYApplePayTestToken.m
// Mobile Buy SDK
//
// Created by Shopify.
// Copyright (c) 2015 Shopify Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#import "BUYApplePayTestToken.h"
@interface
BUYApplePayTestToken
()
@property
(
strong
,
nonatomic
)
NSData
*
testData
;
@end
@implementation
BUYApplePayTestToken
+
(
instancetype
)
validToken
{
BUYApplePayTestToken
*
token
=
[
BUYApplePayTestToken
new
];
token
.
testData
=
[
BUYTestingToken
dataUsingEncoding
:
NSUTF8StringEncoding
];
return
token
;
}
+
(
instancetype
)
invalidToken
{
return
[
BUYApplePayTestToken
new
];
}
-
(
NSData
*
)
paymentData
{
return
_testData
;
}
@end
Mobile Buy SDK/Mobile Buy SDK Tests/BUYApplePayTokenTests.m
View file @
5eb4ae03
...
...
@@ -27,37 +27,12 @@
#import <XCTest/XCTest.h>
#import <PassKit/PassKit.h>
#import "BUYApplePayToken.h"
static
NSString
*
const
BUYTestingToken
=
@"7fc9b0e9-ed1c-4d77-9bac-78c904aa03c1"
;
#import "BUYApplePayTestToken.h"
@interface
BUYApplePayToken
(
Private
)
-
(
NSString
*
)
paymentTokenString
;
@end
@interface
BUYApplePayTestToken
:
PKPaymentToken
@property
(
strong
,
nonatomic
)
NSData
*
testData
;
@end
@implementation
BUYApplePayTestToken
+
(
instancetype
)
validToken
{
BUYApplePayTestToken
*
token
=
[
BUYApplePayTestToken
new
];
token
.
testData
=
[
BUYTestingToken
dataUsingEncoding
:
NSUTF8StringEncoding
];
return
token
;
}
+
(
instancetype
)
invalidToken
{
return
[
BUYApplePayTestToken
new
];
}
-
(
NSData
*
)
paymentData
{
return
_testData
;
}
@end
@interface
BUYApplePayTokenTests
:
XCTestCase
@end
...
...
Mobile Buy SDK/Mobile Buy SDK Tests/BUYClientTest.m
View file @
5eb4ae03
...
...
@@ -35,6 +35,7 @@
#import "BUYAccountCredentials.h"
#import "BUYClient+Customers.h"
#import "BUYApplePayToken.h"
#import "BUYApplePayTestToken.h"
NSString
*
const
BUYFakeCustomerToken
=
@"dsfasdgafdg"
;
...
...
@@ -189,7 +190,7 @@ NSString * const BUYFakeCustomerToken = @"dsfasdgafdg";
-
(
void
)
testCheckoutWithApplePayToken
{
id
<
BUYPaymentToken
>
token
=
[[
BUYApplePayToken
alloc
]
initWithPaymentToken
:[
PKPaymentToken
new
]];
id
<
BUYPaymentToken
>
token
=
[[
BUYApplePayToken
alloc
]
initWithPaymentToken
:[
BUYApplePayTestToken
validToken
]];
XCTAssertThrows
(
[
self
.
client
completeCheckout
:[
BUYCheckout
new
]
paymentToken
:
token
completion
:^
(
BUYCheckout
*
checkout
,
NSError
*
error
)
{}]
);
...
...
Mobile Buy SDK/Mobile Buy SDK Tests/BUYIntegrationTest.m
View file @
5eb4ae03
...
...
@@ -993,8 +993,7 @@
[
self
fetchShippingRates
];
[
self
updateCheckout
];
id
<
BUYPaymentToken
>
token
=
[
self
addCreditCardToCheckout
];
[
self
completeCheckoutWithToken
:
token
];
[
self
completeCheckoutWithToken
:[
self
addCreditCardToCheckout
]];
[
self
pollUntilCheckoutIsComplete
];
[
self
verifyCompletedCheckout
];
...
...
Mobile Buy SDK/Mobile Buy SDK.xcodeproj/project.pbxproj
View file @
5eb4ae03
...
...
@@ -409,10 +409,11 @@
9A47CF041CE3A24600A6D5BA
/* BUYApplePayToken.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CF011CE3A24600A6D5BA
/* BUYApplePayToken.h */
;
};
9A47CF051CE3A24600A6D5BA
/* BUYApplePayToken.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CF021CE3A24600A6D5BA
/* BUYApplePayToken.m */
;
};
9A47CF061CE3A24600A6D5BA
/* BUYApplePayToken.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CF021CE3A24600A6D5BA
/* BUYApplePayToken.m */
;
};
9A47CF071CE3ACE000A6D5BA
/* BUYPayment
SessionProvider.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CEF81CE39EC200A6D5BA
/* BUYPaymentSessionProvider
.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9A47CF081CE3ACE100A6D5BA
/* BUYPayment
SessionProvider.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CEF81CE39EC200A6D5BA
/* BUYPaymentSessionProvider
.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9A47CF071CE3ACE000A6D5BA
/* BUYPayment
Token.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CEF81CE39EC200A6D5BA
/* BUYPaymentToken
.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9A47CF081CE3ACE100A6D5BA
/* BUYPayment
Token.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CEF81CE39EC200A6D5BA
/* BUYPaymentToken
.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
9A47CF0D1CE4D6C600A6D5BA
/* BUYCreditCardTokenTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CF0C1CE4D6C600A6D5BA
/* BUYCreditCardTokenTests.m */
;
};
9A47CF0F1CE4D7A800A6D5BA
/* BUYApplePayTokenTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CF0E1CE4D7A800A6D5BA
/* BUYApplePayTokenTests.m */
;
};
9A47CF201CE50EBB00A6D5BA
/* BUYApplePayTestToken.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A47CF1F1CE50EBB00A6D5BA
/* BUYApplePayTestToken.m */
;
};
9A6B03791CDA5D4F0054C26E
/* BUYAccountCredentialsTests.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
9A6B03781CDA5D4F0054C26E
/* BUYAccountCredentialsTests.m */
;
};
BE10079B1B6165EC0031CEE7
/* BUYOptionValueCell.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE1007991B6165EC0031CEE7
/* BUYOptionValueCell.h */
;
};
BE10079C1B6165EC0031CEE7
/* BUYOptionValueCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
BE10079A1B6165EC0031CEE7
/* BUYOptionValueCell.m */
;
};
...
...
@@ -749,13 +750,15 @@
90FC31A71B50371600AFAB51
/* BUYProductViewHeaderBackgroundImageView.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
name
=
BUYProductViewHeaderBackgroundImageView.m
;
path
=
"Product View/BUYProductViewHeaderBackgroundImageView.m"
;
sourceTree
=
"<group>"
;
};
9A102D1A1CDD1F960026CC43
/* BUYErrorTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYErrorTests.m
;
sourceTree
=
"<group>"
;
};
9A102D1D1CDD25980026CC43
/* BUYOptionValueTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYOptionValueTests.m
;
sourceTree
=
"<group>"
;
};
9A47CEF81CE39EC200A6D5BA
/* BUYPayment
SessionProvider.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYPaymentSessionProvider
.h
;
sourceTree
=
"<group>"
;
};
9A47CEF81CE39EC200A6D5BA
/* BUYPayment
Token.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYPaymentToken
.h
;
sourceTree
=
"<group>"
;
};
9A47CEFA1CE39F5B00A6D5BA
/* BUYCreditCardToken.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYCreditCardToken.h
;
sourceTree
=
"<group>"
;
};
9A47CEFB1CE39F5B00A6D5BA
/* BUYCreditCardToken.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYCreditCardToken.m
;
sourceTree
=
"<group>"
;
};
9A47CF011CE3A24600A6D5BA
/* BUYApplePayToken.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYApplePayToken.h
;
sourceTree
=
"<group>"
;
};
9A47CF021CE3A24600A6D5BA
/* BUYApplePayToken.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYApplePayToken.m
;
sourceTree
=
"<group>"
;
};
9A47CF0C1CE4D6C600A6D5BA
/* BUYCreditCardTokenTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYCreditCardTokenTests.m
;
sourceTree
=
"<group>"
;
};
9A47CF0E1CE4D7A800A6D5BA
/* BUYApplePayTokenTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYApplePayTokenTests.m
;
sourceTree
=
"<group>"
;
};
9A47CF1E1CE50EBB00A6D5BA
/* BUYApplePayTestToken.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYApplePayTestToken.h
;
sourceTree
=
"<group>"
;
};
9A47CF1F1CE50EBB00A6D5BA
/* BUYApplePayTestToken.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYApplePayTestToken.m
;
sourceTree
=
"<group>"
;
};
9A6B03781CDA5D4F0054C26E
/* BUYAccountCredentialsTests.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYAccountCredentialsTests.m
;
sourceTree
=
"<group>"
;
};
BE1007991B6165EC0031CEE7
/* BUYOptionValueCell.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BUYOptionValueCell.h
;
sourceTree
=
"<group>"
;
};
BE10079A1B6165EC0031CEE7
/* BUYOptionValueCell.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
BUYOptionValueCell.m
;
sourceTree
=
"<group>"
;
};
...
...
@@ -982,7 +985,7 @@
children
=
(
84980F281CB75AC200CFAB58
/* BUYObjectProtocol.h */
,
84980F2B1CB75B5E00CFAB58
/* BUYModelManagerProtocol.h */
,
9A47CEF81CE39EC200A6D5BA
/* BUYPayment
SessionProvider
.h */
,
9A47CEF81CE39EC200A6D5BA
/* BUYPayment
Token
.h */
,
);
name
=
Protocols
;
sourceTree
=
"<group>"
;
...
...
@@ -1030,6 +1033,7 @@
90F592ED1B0D5EFE0026B382
/* Mobile Buy SDK Tests */
=
{
isa
=
PBXGroup
;
children
=
(
9A47CF1D1CE50EAB00A6D5BA
/* Test Objects */
,
9A47CF0B1CE4D6A500A6D5BA
/* Payment Session Providers */
,
9A102D1C1CDD257D0026CC43
/* Models Tests */
,
90F592F91B0D5F4C0026B382
/* BUYApplePayAdditionsTest.m */
,
...
...
@@ -1172,6 +1176,15 @@
name
=
"Payment Session Providers"
;
sourceTree
=
"<group>"
;
};
9A47CF1D1CE50EAB00A6D5BA
/* Test Objects */
=
{
isa
=
PBXGroup
;
children
=
(
9A47CF1E1CE50EBB00A6D5BA
/* BUYApplePayTestToken.h */
,
9A47CF1F1CE50EBB00A6D5BA
/* BUYApplePayTestToken.m */
,
);
name
=
"Test Objects"
;
sourceTree
=
"<group>"
;
};
BE1007981B6165CD0031CEE7
/* Cells */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -1365,7 +1378,7 @@
9019312F1BC5B9BC00D1134E
/* BUYLineItem.h in Headers */
,
90C856B51BD6B0F300936926
/* Buy.h in Headers */
,
8498DCAB1CDD1B2600BD12A8
/* BUYShopifyErrorCodes.h in Headers */
,
9A47CF071CE3ACE000A6D5BA
/* BUYPayment
SessionProvider
.h in Headers */
,
9A47CF071CE3ACE000A6D5BA
/* BUYPayment
Token
.h in Headers */
,
901931311BC5B9BC00D1134E
/* BUYProductViewHeaderOverlay.h in Headers */
,
901931341BC5B9BC00D1134E
/* BUYViewController.h in Headers */
,
901931351BC5B9BC00D1134E
/* BUYDiscount.h in Headers */
,
...
...
@@ -1482,7 +1495,7 @@
BE9A645B1B503CDC0033E558
/* BUYLineItem.h in Headers */
,
907874991B7276BA0023775B
/* BUYProductViewHeaderOverlay.h in Headers */
,
8498DCAA1CDD1B2500BD12A8
/* BUYShopifyErrorCodes.h in Headers */
,
9A47CF081CE3ACE100A6D5BA
/* BUYPayment
SessionProvider
.h in Headers */
,
9A47CF081CE3ACE100A6D5BA
/* BUYPayment
Token
.h in Headers */
,
BE9A64801B503D990033E558
/* BUYViewController.h in Headers */
,
BE9A644F1B503CA90033E558
/* BUYDiscount.h in Headers */
,
900396AC1B627CB900226B73
/* BUYProductView.h in Headers */
,
...
...
@@ -1880,6 +1893,7 @@
90F5930A1B0D5F4C0026B382
/* BUYLineItemTest.m in Sources */
,
8498DCCA1CDD208200BD12A8
/* BUYCollectionTests.m in Sources */
,
849110321CCE708900E53B93
/* BUYRegularExpressionAdditionsTests.m in Sources */
,
9A47CF201CE50EBB00A6D5BA
/* BUYApplePayTestToken.m in Sources */
,
90F593061B0D5F4C0026B382
/* BUYCartTest.m in Sources */
,
90F593051B0D5F4C0026B382
/* BUYApplePayAdditionsTest.m in Sources */
,
8498DCC91CDD208200BD12A8
/* BUYClientTest_Customer.m in Sources */
,
...
...
Mobile Buy SDK/Mobile Buy SDK/Buy.h
View file @
5eb4ae03
...
...
@@ -68,7 +68,7 @@ FOUNDATION_EXPORT const unsigned char BuyVersionString[];
#import <Buy/BUYObserver.h>
#import <Buy/BUYShopifyErrorCodes.h>
#import <Buy/BUYPayment
SessionProvider
.h>
#import <Buy/BUYPayment
Token
.h>
#import <Buy/BUYPaymentButton.h>
#import <Buy/BUYProductViewController.h>
#import <Buy/BUYStoreViewController.h>
...
...
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient.h
View file @
5eb4ae03
...
...
@@ -114,7 +114,7 @@ typedef NS_ENUM(NSUInteger, BUYStatus) {
};
/**
* Return block containing a BUYCheckout, id<BUYPayment
SessionProvider
> and/or an NSError
* Return block containing a BUYCheckout, id<BUYPayment
Token
> and/or an NSError
*
* @param checkout The returned BUYCheckout
* @param paymentToken An opaque payment token type that wraps necessary credentials for payment
...
...
@@ -445,7 +445,7 @@ NS_ASSUME_NONNULL_BEGIN
-
(
NSURLSessionDataTask
*
)
updateCheckout
:(
BUYCheckout
*
)
checkout
completion
:(
BUYDataCheckoutBlock
)
block
;
/**
* Finalizes the BUYCheckout and charges the payment provider (ex: Credi Card, Apple Pay, etc).
* Finalizes the BUYCheckout and charges the payment provider (ex: Credi
t
Card, Apple Pay, etc).
* This enqueues a completion job on Shopify and returns immediately.
* You must get the job's status by calling checkCompletionStatusOfCheckout:block
*
...
...
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient.m
View file @
5eb4ae03
...
...
@@ -37,7 +37,7 @@
#import "BUYModelManager.h"
#import "BUYOrder.h"
#import "BUYProduct.h"
#import "BUYPayment
SessionProvider
.h"
#import "BUYPayment
Token
.h"
#import "BUYShippingRate.h"
#import "BUYShop.h"
#import "BUYShopifyErrorCodes.h"
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/BUYApplePayToken.h
View file @
5eb4ae03
...
...
@@ -25,7 +25,7 @@
//
#import <Foundation/Foundation.h>
#import "BUYPayment
SessionProvider
.h"
#import "BUYPayment
Token
.h"
@class
PKPaymentToken
;
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/BUYApplePayToken.m
View file @
5eb4ae03
...
...
@@ -48,7 +48,7 @@
return
[[
NSString
alloc
]
initWithData
:
self
.
paymentToken
.
paymentData
encoding
:
NSUTF8StringEncoding
];
}
#pragma mark - BUYPayment
SessionProvider
-
#pragma mark - BUYPayment
Token
-
-
(
NSDictionary
*
)
JSONDictionary
{
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/BUYCreditCardToken.h
View file @
5eb4ae03
...
...
@@ -25,7 +25,7 @@
//
#import <Foundation/Foundation.h>
#import "BUYPayment
SessionProvider
.h"
#import "BUYPayment
Token
.h"
@interface
BUYCreditCardToken
:
NSObject
<
BUYPaymentToken
>
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/BUYCreditCardToken.m
View file @
5eb4ae03
...
...
@@ -41,7 +41,7 @@
return
self
;
}
#pragma mark - BUYPayment
SessionProvider
-
#pragma mark - BUYPayment
Token
-
-
(
NSDictionary
*
)
JSONDictionary
{
...
...
Mobile Buy SDK/Mobile Buy SDK/Models/BUYPayment
SessionProvider
.h
→
Mobile Buy SDK/Mobile Buy SDK/Models/BUYPayment
Token
.h
View file @
5eb4ae03
File moved
Mobile Buy SDK/Mobile Buy SDK/Static Framework/Buy.h
View file @
5eb4ae03
...
...
@@ -64,7 +64,7 @@
#import "BUYObserver.h"
#import "BUYShopifyErrorCodes.h"
#import "BUYPayment
SessionProvider
.h"
#import "BUYPayment
Token
.h"
#import "BUYPaymentButton.h"
#import "BUYProductViewController.h"
#import "BUYStoreViewController.h"
...
...
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