パッケージ、リポジトリ、アプリカテゴリを検索

aamarpay のカバー
パッケージ詳細v1.0.15

aamarpay

aamarPay用の公式Flutterパッケージ。aamarPayはバングラデシュ向けのオンライン決済ゲートウェイサービスです。

AndroidiOSmacOS
30日間ダウンロード
159
いいね数
36
Pub ポイント
140

パッケージをインストール

flutter pub add aamarpay

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

aamarpay Flutterパッケージは、バングラデシュで主要なオンライン決済ゲートウェイサービスであるaamarPayとの公式統合を提供します。Android、iOS、macOS向けのFlutterアプリケーション内での支払い処理をスムーズに行うことができます。このパッケージは、取引の開始、支払い応答の処理、およびaamarPayのAPIとの安全な通信を簡素化します。バングラデシュ市場をターゲットにした開発者向けに設計されており、現地通貨(BDT)およびモバイルバンキングやクレジット/デビットカードなどの一般的な支払い方法をサポートしています。pub.dev経由での簡単なセットアップにより、電子商務およびデジタルサービスの収益化がスムーズになります。

用途

  • バングラデシュのECアプリ
  • デジタルサービスのサブスクリプション
  • オンラインチケット予約
  • モバイルバンキングの統合
  • アプリ内購入
  • 政府サービスの支払い

主な機能

  • 公式 aamarPay SDK インテグレーション
  • BDT取引のサポート
  • クロスプラットフォーム互換性
  • セキュアな決済処理
  • pub.dev への簡単なインストール
  • トランザクションステータスコールバック

適している対象

  • バングラデシュのフィンテックスタートアップ
  • ローカルなECプラットフォーム
  • ローカル決済を必要とするモバイルアプリ
  • 南アジア市場をターゲットにする開発者
  • モバイルバンキング対応が必要なアプリ

注意事項

  • 有効な 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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。