b24_payment_sdk 1.1.11-beta.2 b24_payment_sdk: ^1.1.11-beta.2 copied to clipboard
Package payment SDK for merchant.
b24_payment_sdk #
b24_payment_sdk is a Flutter package that simplifies the integration of payment methods for merchants who want to offer a range of payment options, including bank app payments, bank checkout, and KHQR payments. This package is written in Dart and supports Android, iOS and Web platforms.
Features #
-
Payment Deep-link: Allow your users to make payments through their bank's mobile app, providing a seamless and familiar payment experience.
-
Bank Checkout: Offer a convenient checkout process where users can pay directly through their bank, ensuring a secure and efficient transaction.
-
KHQR Payment: Enable users to make payments using the KHQR (Quick Response Code) method, offering a versatile and widely accepted payment option.
Getting started #
To use the payment_sdk package in your Flutter project, follow these steps:
iOS #
Add permission in Info.plist
#
<key>Privacy - Photo Library Additions Usage Description</key>
<string>App needs access to the photo library for saving images.</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>https</string>
</array>
Android #
Change values config in AndroidManifest
#
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<activity android:launchMode="singleInstance"></activity>
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
</queries>
Add the dependency #
Add the following dependency to your pubspec.yaml
file:
dependencies:
b24_payment_sdk: ^1.1.4
## Usage
import 'package:b24_payment_sdk/b24_payment_sdk.dart';
void main() {
B24PaymentSdk.intSdk(
controller: context,
tranId: "4614B5964908",
refererKey: "123X",
language: "km",
darkMode: false,
isProduction: false,
isPopup: true
);
}