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
f5a93e4c
Commit
f5a93e4c
authored
Oct 02, 2015
by
Rune Madsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If a shop object exists, use it's currency and country code for Apple Pay
parent
69fafd74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
CheckoutViewController.m
...d/Mobile Buy SDK Advanced Sample/CheckoutViewController.m
+3
-3
No files found.
Mobile Buy SDK Sample Apps/Sample App Advanced/Mobile Buy SDK Advanced Sample/CheckoutViewController.m
View file @
f5a93e4c
...
...
@@ -278,10 +278,10 @@ NSString * const MerchantId = @"";
[
paymentRequest
setRequiredShippingAddressFields
:
self
.
checkout
.
requiresShipping
?
PKAddressFieldAll
:
PKAddressFieldEmail
|
PKAddressFieldPhone
];
[
paymentRequest
setSupportedNetworks
:@[
PKPaymentNetworkVisa
,
PKPaymentNetworkMasterCard
]];
[
paymentRequest
setMerchantCapabilities
:
PKMerchantCapability3DS
];
[
paymentRequest
setCountryCode
:
@"US"
];
[
paymentRequest
setCurrencyCode
:
@"USD"
];
[
paymentRequest
setCountryCode
:
self
.
shop
.
country
?:
@"US"
];
[
paymentRequest
setCurrencyCode
:
self
.
shop
.
currency
?:
@"USD"
];
[
paymentRequest
setPaymentSummaryItems
:
[
self
.
checkout
buy_summaryItems
]];
[
paymentRequest
setPaymentSummaryItems
:
[
self
.
checkout
buy_summaryItemsWithShopName
:
self
.
shop
.
name
]];
return
paymentRequest
;
}
...
...
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