Skip to content

Commit 2cbe3a5

Browse files
edit readme One Touch notes
1 parent e914893 commit 2cbe3a5

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

README.md

+15-12
Original file line numberDiff line numberDiff line change
@@ -192,28 +192,31 @@ BTClient.getCardNonce("4111111111111111", "10", "20", "400").then(function(nonce
192192
});
193193
```
194194

195-
### One Touch on iOS
195+
## One Touch on iOS
196196
To take advantage of [One Touch](https://developers.braintreepayments.com/guides/one-touch/overview/ios/v3), there are additional setup required:
197197

198198
1. Register a URL scheme in Xcode (should always start with YOUR Bundle ID)
199+
[More info here](https://developers.braintreepayments.com/guides/paypal/client-side/ios/v3#register-a-url-type) TL;DR
199200

200-
####add to Info.Plist
201+
202+
#### Add CFBundleURLTypes to Info.Plist
201203
```js
202204
<key>CFBundleURLTypes</key>
203205
<array>
204-
<dict>
205-
<key>CFBundleTypeRole</key>
206-
<string>Editor</string>
207-
<key>CFBundleURLName</key>
208-
<string>your.bundle.id</string>
209-
<key>CFBundleURLSchemes</key>
210-
<array>
211-
<string>your.bundle.id.payments</string>
212-
</array>
213-
</dict>
206+
<dict>
207+
<key>CFBundleTypeRole</key>
208+
<string>Editor</string>
209+
<key>CFBundleURLName</key>
210+
<string>your.bundle.id</string>
211+
<key>CFBundleURLSchemes</key>
212+
<array>
213+
<string>your.bundle.id.payments</string>
214+
</array>
215+
</dict>
214216
</array>
215217
```
216218
#### WhiteList
219+
If your app is built using iOS 9 as its Base SDK, then you must add URLs to a whitelist in your app's info.plist
217220
```js
218221
<key>LSApplicationQueriesSchemes</key>
219222
<array>

0 commit comments

Comments
 (0)