0 purchases
uzpay
UzPay πΊπΏ π³ #
UzPay bu O'zbekistonda faoliyat olib boradigan to'lov tizimlari orqali OSON to'lov qilish imkonini beradigan Flutter paketidir.
Taqdimot #
Xususiyatlari #
To'lovlarni ichki va tashqi brauzer orqali ochish
Ichki brauzer "header" qismidagi yozuv va rangni sizning ilovangizga moslashtirish
Tashqi brauzerga shaxsiy menyu bo'limini qo'shish
Hozirda mavjud to'lov tizimlari:
Click - (CLICK BUTTON - orqali) - DOCS
Payme - (GET - so'rovida chek yuborish orqali) - DOCS
Qo'shilishi re'jada turganlari:
Uzcard
Oson
Paynet
Upay
Boshlash #
Flutter loyihangizga paket nomini qo'shing:
dependencies:
uzpay: ^x.y.z
copied to clipboard
Ushbu komandani yurgizing:
flutter pub get
copied to clipboard
Batafsil, bu yerda o'qing dokumentatsiya.
Ishlatish namunasi #
Dart kodingizga paketni import qiling:
import 'package:uzpay/uzpay.dart';
copied to clipboard
Asosiy UzPay klasimizda bir dona statik metod bor:
UzPay.doPayment(...);
copied to clipboard
Uning ishlatilish tartibi quyidagicha:
///Avvaliga parametrlarni belgilab olamiz
var paymentParams = Params(
paymeParams: PaymeParams(
transactionParam: TRANS_ID,
merchantId: PAYME_MERCHANT_ID,
// Quyidagilar ixtiyoriy parametrlar
accountObject: 'userId', // Agar o'zgargan bo'lsa
headerColor: Colors.indigo, // Header rangi
headerTitle: "Payme tizimi orqali to'lash"), // Header yozuvi
clickParams: ClickParams(
transactionParam: TRANS_ID,
merchantId: CLICK_MERCHANT_ID,
serviceId: CLICK_SERVICE_ID,
merchantUserId: CLICK_MERCHANT_USER_ID,
// Quyidagilar ixtiyoriy parametrlar
headerColor: Colors.blue, // Header rangi
headerTitle: "Click tizimi orqali to'lash"), // Header yozuvi
));
/// Tashqi brauzer orqali to'lov chekini ochish
UzPay.doPayment(context,
amount: 5000, // To'ov summasi
paymentSystem: PaymentSystem.Payme,
paymentParams: paymentParams,
browserType: BrowserType.External,
// Quyida ixtiyoriy parametr
externalBrowserMenuItem: ChromeSafariBrowserMenuItem(
id: 1,
label: 'Dasturchi haqida',
action: (url, title) {
launchCustomUrl('https://flutterdev.uz/men-haqimda/'); }));
copied to clipboard
Enumlar: #
enum PaymentSystem { Click, Payme, PaymeTest }
enum BrowserType { External, Internal }
copied to clipboard
Eslatma: Agar to'lov summasi Payme kabi tiyinlar bilan kiritilsa, jarayon hisobga olingan, faqat aktual summani kiritasiz, masalan 5000 so'm => amount: 5000
Savol va takliflar bo'lsa, tortinmang: https://allmylinks.com/mamasodikov
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.