DyScan
Search…
DyScan
DyScan Integration Guide
iOS Integration Guide
Android Integration Guide
React Native Integration Guide
Cordova Integration Guide
Integrity Verification
Migrating from card.io
Migrating from card.io (iOS)
Migrating from card.io (Android)
Integrating with Stripe
Integrating with Stripe (iOS)
Integrating with Stripe (Android)
Alternate Ways to Integrate iOS
Integrating with Swift Package Manager
Integrating with Carthage
Integrating as a Framework
Alternate Ways To Integrate Android
Manually Importing the Library
Using DyScanView
MIGRATING FROM 1.0.X TO 1.1.X
Migrating from 1.0.x to 1.1.x (iOS)
Migrating from 1.0.x to 1.1.x (Android)
Migrating from 1.0.x to 1.1.x (React Native)
Powered By
GitBook
Migrating from 1.0.x to 1.1.x (iOS)
In version 1.1.1 we change the way of initializing DyScan and setting up the API key.
Removing API key setter
Depending on the way which you chose to use DyScan, you will need to remove following lines.
View Controller as an Option
View Controller as the Default
View
1
let
viewController
=
DyScanViewController
()
2
3
//...
4
5
// Remove the line below
6
// viewController.apiKey = "{YOUR API KEY}"
Copied!
1
let
viewController
=
DyScanDefaultViewController
()
2
3
//...
4
5
// Remove the line below
6
// viewController.apiKey = "{YOUR API KEY}"
Copied!
1
dyScanView
=
DyScanView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
self
.
view
.
frame
.
width
,
height
:
self
.
view
.
frame
.
height
))
2
3
//...
4
5
// Remove the line below
6
// dyScanView?.apiKey = "{YOUR API KEY}"
Copied!
Initializing DyScan
In your
AppDelegate
add the following line to configure
DyScan
.
1
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
{
2
3
//...
4
5
internal
func
application
(
_
application
:
UIApplication
,
didFinishLaunchingWithOptions launchOptions
:
[
UIApplication
.
LaunchOptionsKey
:
Any
]
?
)
->
Bool
{
6
//...
7
DyScan
.
configure
(
apiKey
:
"{YOUR API KEY}"
)
8
//...
9
return
true
10
}
11
}
Copied!
Alternate Ways To Integrate Android - Previous
Using DyScanView
Next - MIGRATING FROM 1.0.X TO 1.1.X
Migrating from 1.0.x to 1.1.x (Android)
Last modified
1yr ago
Copy link
Contents
Removing API key setter
Initializing DyScan