GithubHelp home page GithubHelp logo

mamasodikov / uzpay Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 1.47 MB

Uzbek Payment Systems Integration for Flutter apps

Home Page: https://pub.dev/packages/uzpay

License: BSD 3-Clause "New" or "Revised" License

Kotlin 0.15% Ruby 3.11% Swift 3.23% Objective-C 0.04% Dart 42.76% CMake 20.99% C++ 26.07% C 1.58% HTML 2.08%
click dart flutter package payme paynet upay uzbekistan uzcard oson

uzpay's Introduction

UzPay πŸ‡ΊπŸ‡Ώ πŸ’³

UzPay bu O'zbekistonda faoliyat olib boradigan to'lov tizimlari orqali OSON to'lov qilish imkonini beradigan Flutter paketidir.

Taqdimot

uzpay_banner

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

Ushbu komandani yurgizing:

flutter pub get

Batafsil, bu yerda o'qing dokumentatsiya.

Ishlatish namunasi

Dart kodingizga paketni import qiling:

import 'package:uzpay/uzpay.dart';

Asosiy UzPay klasimizda bir dona statik metod bor:

UzPay.doPayment(...);

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'lov 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/'); }));

Enumlar:

enum PaymentSystem { Click, Payme, PaymeTest }
enum BrowserType { External, Internal }

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

uzpay's People

Contributors

mamasodikov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

sherbaev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.