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
d8fb9503
Commit
d8fb9503
authored
9 years ago
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move assertion to top of initializers.
parent
97372d4d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
BUYApplePayToken.m
Mobile Buy SDK/Mobile Buy SDK/Models/BUYApplePayToken.m
+2
-1
BUYCreditCardToken.m
Mobile Buy SDK/Mobile Buy SDK/Models/BUYCreditCardToken.m
+2
-2
No files found.
Mobile Buy SDK/Mobile Buy SDK/Models/BUYApplePayToken.m
View file @
d8fb9503
...
@@ -37,9 +37,10 @@
...
@@ -37,9 +37,10 @@
-
(
instancetype
)
initWithPaymentToken
:(
PKPaymentToken
*
)
paymentToken
-
(
instancetype
)
initWithPaymentToken
:(
PKPaymentToken
*
)
paymentToken
{
{
BUYAssert
(
paymentToken
.
paymentData
.
length
>
0
,
@"Failed to initialize BUYApplePayToken. Invalid or nil paymentToken."
);
self
=
[
super
init
];
self
=
[
super
init
];
if
(
self
)
{
if
(
self
)
{
BUYAssert
(
paymentToken
.
paymentData
.
length
>
0
,
@"Failed to initialize BUYApplePayToken. Invalid or nil paymentToken."
);
_paymentToken
=
paymentToken
;
_paymentToken
=
paymentToken
;
}
}
return
self
;
return
self
;
...
...
This diff is collapsed.
Click to expand it.
Mobile Buy SDK/Mobile Buy SDK/Models/BUYCreditCardToken.m
View file @
d8fb9503
...
@@ -33,10 +33,10 @@
...
@@ -33,10 +33,10 @@
-
(
instancetype
)
initWithPaymentSessionID
:(
NSString
*
)
paymentSessionID
-
(
instancetype
)
initWithPaymentSessionID
:(
NSString
*
)
paymentSessionID
{
{
self
=
[
super
init
];
if
(
self
)
{
BUYAssert
(
paymentSessionID
.
length
>
0
,
@"Failed to initialize BUYCreditCardToken. Invalid or nil payment session ID."
);
BUYAssert
(
paymentSessionID
.
length
>
0
,
@"Failed to initialize BUYCreditCardToken. Invalid or nil payment session ID."
);
self
=
[
super
init
];
if
(
self
)
{
_paymentSessionID
=
paymentSessionID
;
_paymentSessionID
=
paymentSessionID
;
}
}
return
self
;
return
self
;
...
...
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