You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hamon Ben Riazy edited this page Apr 20, 2016
·
2 revisions
Add import JudoKit to 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
varjudoKitSession=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.