forked from Ryce/JudoKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Initial Setup
Hamon Ben Riazy edited this page Apr 20, 2016
·
2 revisions
-
Add
import JudoKitto the top of the file where you want to use the SDK. -
You can set your key and secret here when initializing the session:
// initialize the SDK by setting it up with a token and a secret
var judoKitSession = JudoKit(token: token, secret: secret)- To instruct the SDK to communicate with the Sandbox, include the following lines in the ViewController where the payment should be initiated:
// setting the SDK to Sandbox Mode - once this is set, the SDK wil stay in Sandbox mode until the process is killed
self.judoKitSession.sandboxed(true)- When you are ready to go live you can remove this line.