Build payments into your iOS mobile app with Swift.The Bill24 iOS SDK with Swift helps you build customizable payments into your app. We provide powerful and customizable UI screens and allow your customer to make payment Easier and Faster.How to integrate#
Frist, you can get Bill24 package SDK from cocoapods, please check the latest version.Create Podfile
and add pod B24PaymentSdk
use_frameworks!
target 'MyApp' do
pod 'B24PaymentSdk',
:http => 'https://b24sdk.s3.ap-southeast-1.amazonaws.com/B24PaymentSdk-1-1-46-beta-12.zip'
end
Run this command for install pod:And you can import the package:import UIKit
import B24PaymentSdk
Now you can access our function
to initiate SDK.To initiate SDK or load SDK you must use this class name B24PaymentSdk().initInstantPayment
Parameter | Type | Description |
---|
userSyncCode | String* | Unique code created by the customer |
refererKey | String* | Can be any key to identity the client side or referer URL |
language | String | Language setting ("en" for English, "km" for Khmer) |
isDarkMode | Boolean | Enables dark mode (true for dark mode, false for light mode) |
isProduction | Boolean | Indicates environment (true for live, false for testing) |
Grant Permission:
Add permission to save image in photos inside Info.plist
<key>Privacy - Photo Library Additions Usage Description</key>
<string>App needs access to the photo library for saving images.</string>
To initiate SDK or load SDK you must provide userSyncCode
that you get from endpoint Create Customer. Modified at 2025-05-22 07:57:08