APIs for Businesses
Home
APIs
  • Checkout/ Deeplink
  • Merchant Proxy
  • Bill24 Hosted
  • Auto Direct Debit
  • KHQR Integration Specification for API
  • Notification API
  • On Boarding Sub Biller API
Home
APIs
  • Checkout/ Deeplink
  • Merchant Proxy
  • Bill24 Hosted
  • Auto Direct Debit
  • KHQR Integration Specification for API
  • Notification API
  • On Boarding Sub Biller API
CHECKOUT/ DEEPLINKMerchant ProxyBill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification APIPayment Method
CHECKOUT/ DEEPLINKMerchant ProxyBill24 HostedAuto Direct DebitKHQR Integration Specification for APINotification APIPayment Method
  1. MOBILE SDKS
  • Payment Method API
    • Overview
    • Response Code
    • MOBILE SDKS
      • iOS SDK
      • Android SDK
    • Authorization
      POST
    • Create Customer
      POST
    • Get Payment Methods
      GET
    • Settle Payment
      POST
    • Get List bills
      GET
    • Get Wallet Balance
      POST
    • Get Transaction Detail
      POST
  • Activate Sub Biller API
    • Overview
    • Response Code
    • Authorization
      POST
    • Onboarding
      POST
    • Get Available Banks
      GET
    • Add Link Account
      POST
    • Verify Linked Bank Account
      POST
  1. MOBILE SDKS

iOS SDK

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.
CocoaPods 1.1.46 or check 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-11.zip'
   end
https://b24sdk.s3.ap-southeast-1.amazonaws.com/B24PaymentSdk-1-1-46-beta-11.zip
Run this command for install pod:
pod install
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 Request:
ParameterTypeDescription
userSyncCodeString*Unique code created by the customer
refererKeyString*Can be any key to identity the client side or referer URL
languageStringLanguage setting ("en" for English, "km" for Khmer)
isDarkModeBooleanEnables dark mode (true for dark mode, false for light mode)
isProductionBooleanIndicates environment (true for live, false for testing)
Example code:
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>
Requirement :
UIkit
Swift version 5.0.0
IOS minimum version 13.0
Xcode version 15.0
 
NOTE
To initiate SDK or load SDK you must provide userSyncCode that you get from endpoint Create Customer.
Previous
Response Code
Next
Android SDK