搜尋套件、儲存庫與 APP 分類

aamarpay 封面
套件詳情v1.0.15

aamarpay

aamarPay 的官方 Flutter 套件。aamarPay 是孟加拉國的線上付款網關服務。

AndroidiOSmacOS
近 30 天下載
253
喜歡數
36
Pub 分數
140

安裝套件

flutter pub add aamarpay

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

aamarpay Flutter 套件提供與 aamarPay 的官方整合,aamarPay 是孟加拉國領先的線上付款網關服務。該套件可在 Flutter 應用程式中於 Android、iOS 及 macOS 上實現無縫付款處理。此套件簡化了交易啟動、付款回應處理,以及與 aamarPay API 的安全通訊。專為針對孟加拉國市場的開發者設計,支援當地貨幣(BDT)及常見付款方式,例如行動銀行與信用卡/借記卡。透過 pub.dev 簡單設定,可簡化電商與數位服務的 monetization 流程。

適用情境

  • 孟加拉國的電子商務應用
  • 數位服務訂閱
  • 在線購票
  • 行動銀行整合
  • 應用內購買
  • 政府服務付款

主要特色

  • 官方 aamarPay SDK 集成
  • 支援BDT交易
  • 跨平台相容性
  • 安全支付處理
  • 輕鬆安裝 pub.dev
  • 交易狀態回調

適合對象

  • 孟加拉國金融科技初創企業
  • 本地電子商務平台
  • 需要本地支付的行動應用程式
  • 面向南亞市場的開發者
  • 需要行動銀行支援的應用程式

使用建議

  • 需要有效的 aamarPay 商戶帳戶
  • 僅限孟加拉國用戶
  • 需要正確的SSL設定
  • 依賴外部API的穩定性
  • 可能需要遵守當地的金融監管規定

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

aamarpay

aamarPay is an online payment gateway service for Bangladesh. Committed to provide best payment experience online for business. Lowest fee and fast checkout will give you good experience of receiving payment online.

aamarpay

Requirements

  • Android: minSdkVersion 19

How to use:

In the dependencies: section of your pubspec.yaml, add the following line:

dependencies:
     aamarpay: ^1.0.15

install packages from the command line:

$ flutter pub get

Importance notes

  • Read the comments in the example code
  • The transactionID must be unique for every payment
  • There is a test signature key. But when you go to the production you must use your own signature key
  • It is better to practice with the example code first

Here is the example code:

import 'package:flutter/material.dart';
import 'package:aamarpay/aamarpay.dart';

void main() {
  runApp(MaterialApp(
    home: MyPay(),
  ));
}

class MyPay extends StatefulWidget {
  @override
  _MyPayState createState() => _MyPayState();
}

class _MyPayState extends State<MyPay> {
  bool isLoading = false;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Aamarpay(
          // This will return a payment url based on failUrl,cancelUrl,successUrl
          returnUrl: (String url) {
            print(url);
          },
          // This will return the payment loading status
          isLoading: (bool loading) {
            setState(() {
              isLoading = loading;
            });
          },
          // This will return the payment event with a message
          status: (EventState event, String message) {
            if (event == EventState.error) {
              setState(() {
                isLoading = false;
              });
            }
          },
          // When you use your own url, you must have the keywords:cancel,confirm,fail otherwise the callback function will not work properly
          cancelUrl: "example.com/payment/cancel",
          successUrl: "example.com/payment/confirm",
          failUrl: "example.com/payment/fail",
          customerEmail: "masumbillahsanjid@gmail.com",
          customerMobile: "01834760591",
          customerName: "Masum Billah Sanjid",
          // That is the test signature key. But when you go to the production you must use your own signature key
          signature: "dbb74894e82415a2f7ff0ec3a97e4183",
           // That is the test storeID. But when you go to the production you must use your own storeID 
          storeID: "aamarpaytest", 
          // Use transactionAmountFromTextField when you pass amount with TextEditingController
          // transactionAmountFromTextField: amountTextEditingController,
          transactionAmount: "200",
          //The transactionID must be unique for every payment
          transactionID: "${DateTime.now().millisecondsSinceEpoch}",
          //The transactionID must be unique for every payment 
          transactionID: "transactionID",
          description: "test",
          // When the application goes to the producation the isSandbox must be false
          isSandBox: true,
          child: isLoading
              ? Center(
                  child: CircularProgressIndicator(),
                )
              : Container(
                  color: Colors.orange,
                  height: 50,
                  child: Center(
                    child: Text(
                      "Payment",
                      style: TextStyle(
                          fontWeight: FontWeight.bold, color: Colors.white),
                    ),
                  ),
                ),
        ),
      ),
    );
  }
}



Find more details in aamarPay

所屬分類

依賴

依賴清單 2 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。