iOS Integration
You can use StreamPay Connect in your IOS POS app
Configuration
Download the framework from Here
Import the framework into your projects
Steps:
In the project navigator, select your project.
Select your target.
Select the "General" tab.
Open "Framework, Libraries and Embedded Content" expander.
Click the + button.
Add file
(optional) or you can just drag and drop the file to "Framework, Libraries and Embedded Content".
3. Add Bluetooth as "Bluetooth Always Usage Description" to your info
4. import StreampayConnectKit
import StreampayConnectKit5. Define connectivity object
6. add this modifier at the end of the root view
7. Add sessionDelegate in the main root
8. Start Purchase
9. Add extension to root view
Functions
setupUI()
This function is used to show the setup UI of StreamPay connect
startPurchaseTransaction(amount: )
Purchase is used to send the amount to the other Device
resetSetting()
The reset setting is used to reset all the settings.
$showUI
ShowUI is a Boolean to check if UI is opened or closed.
Example
Please check the example
Last updated