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
56016532
Commit
56016532
authored
May 25, 2016
by
Dima Bart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove BUYCheckout from `storeCreditCard:completion:` callback.
parent
f633f053
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
BUYIntegrationTest.m
Mobile Buy SDK/Mobile Buy SDK Tests/BUYIntegrationTest.m
+1
-3
BUYClient+Checkout.h
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Checkout.h
+1
-1
BUYClient+Checkout.m
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Checkout.m
+1
-1
No files found.
Mobile Buy SDK/Mobile Buy SDK Tests/BUYIntegrationTest.m
View file @
56016532
...
...
@@ -220,12 +220,10 @@
__block
id
<
BUYPaymentToken
>
token
=
nil
;
XCTestExpectation
*
expectation
=
[
self
expectationWithDescription
:
NSStringFromSelector
(
_cmd
)];
[
self
.
client
storeCreditCard
:
creditCard
checkout
:
_checkout
completion
:^
(
BUYCheckout
*
returnedCheckout
,
id
<
BUYPaymentToken
>
paymentToken
,
NSError
*
error
)
{
[
self
.
client
storeCreditCard
:
creditCard
checkout
:
_checkout
completion
:^
(
id
<
BUYPaymentToken
>
paymentToken
,
NSError
*
error
)
{
XCTAssertNil
(
error
);
XCTAssertNotNil
(
paymentToken
);
XCTAssertNotNil
(
returnedCheckout
);
_checkout
=
returnedCheckout
;
token
=
paymentToken
;
[
expectation
fulfill
];
}];
...
...
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Checkout.h
View file @
56016532
...
...
@@ -41,7 +41,7 @@ NS_ASSUME_NONNULL_BEGIN
* @param paymentToken An opaque payment token type that wraps necessary credentials for payment
* @param error Optional NSError
*/
typedef
void
(
^
BUYDataCreditCardBlock
)(
BUYCheckout
*
_Nullable
checkout
,
id
<
BUYPaymentToken
>
_Nullable
paymentToken
,
NSError
*
_Nullable
error
);
typedef
void
(
^
BUYDataCreditCardBlock
)(
id
<
BUYPaymentToken
>
_Nullable
paymentToken
,
NSError
*
_Nullable
error
);
/**
* Return block containing a BUYCheckout and/or an NSError
...
...
Mobile Buy SDK/Mobile Buy SDK/Data/BUYClient+Checkout.m
View file @
56016532
...
...
@@ -264,7 +264,7 @@
if
(
!
error
)
{
token
=
[[
BUYCreditCardToken
alloc
]
initWithPaymentSessionID
:
json
[
@"id"
]];
}
completion
(
checkout
,
token
,
error
);
completion
(
token
,
error
);
}];
}
...
...
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