You will need to add the following to your projects Info.plist, replace
"Your App" with your app's name, or change the wording as you see fit.
Initialising the YocoSDK
In order to do a transaction with the YocoSDK, you will need to acquire a secret integration key from Yoco by filling out this Yoco Integrations form. Once filled out, an employee from Yoco will reach out to you with details.
Once you have acquired your secret key, the next step is to call the
initialise() function from the YocoSDK. Normally this will go inside your
AppDelegate but it can be called any time before trying to interact with any of the other API's of the YocoSDK.
initialise() must only be called once per app launch. Following
initialise() you will need to call
configure() with your secret. You can call configure multiple times per app run if you wish to change logging output or switch environments.
Please ensure that you also call
applicationWillTerminate() in your
applicationWillTerminate callback so that the YocoSDK can clean up appropriately in the event of the app being terminated unexpectedly.
All functions of the YocoSDK must be called on the main thread.
The YocoSDK cannot build for the i386 architecture.
You are now ready to start making a payment!