upi_india 패키지는 Android용 플러터 플러그인으로, 장치에 설치된 다양한 UPI(통합 결제 인터페이스) 지원 앱과 통합하여 원활한 UPI 거래를 가능하게 합니다. 사용자는 Google Pay, PhonePe, Paytm과 같은 인기 있는 UPI 앱을 통해 은행 정보를 수동으로 입력하지 않고도 직접 결제를 시작할 수 있습니다. 이 플러그인은 네이티브 UPI 기능을 활용함으로써 인도 전자상거래 및 서비스 앱에서 결제 처리를 간소화합니다. 금액, 수취인, 거래 참조와 같은 동적 거래 매개변수를 지원하여 안전하고 효율적인 결제를 보장합니다. 이 패키지는 인도 시장 대상의 금융 또는 소매 애플리케이션을 개발하는 개발자에게 이상적입니다.
사용 사례
모바일 전자상거래 체크아웃
디지털 지갑 통합
서비스 결제 수금
계산서 분할 앱
기부 플랫폼
주요 기능
여러 UPI 앱을 지원합니다
보안 거래 시작
동적 결제 매개변수
Android용 간단한 API
내장된 오류 처리
적합한 대상
인도 중심 모바일 앱
결제 게이트웨이
소매 및 서비스 플랫폼
Android에서의 Flutter 개발자
UPI 결제가 필요한 앱
고려 사항
Android 전용 지원
UPI 앱 설치 필요
인도 금융 시스템에만 제한됨
iOS 호환성 없음
사용자의 UPI 앱 사용 가능 여부에 따라 달라짐
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
This repository is now Archived.
UPI India (for Android only)
This plugin is used to integrate UPI Options in your Android app. You can use this plugin to initiate transaction to any UPI ID or to any Account number. Check the Supported apps here.
For a complete example of how to use this plugin, look at the Example tab or in the Github repository.
IMPORTANT!
Some apps like Google Pay, PhonePe, Paytm are currently unable to process the transaction and showing "Maximum limit exceeded" or "Risk threshold exceeded" errors. Reason for this is not clear yet.
Help required
If you can help to extend this for iOS, feel free to check this issue.
If you can help to verify the compatibility of different UPI apps, feel free to check this issue.
Thanks in advance :)
Classes to know
UpiIndia - It is the main class containing two methods:
getAllUpiApps() - It takes:
bool allowNonVerifiedApps: Should include apps whose working has not been verified yet or not
List[UpiApp] includeOnly: List of UpiApps which should be shown and hide the others.
bool mandatoryTransactionId: Should include those apps which doesn't return Transaction ID or not
startTransaction() - It takes:
double amount: Amount to transfer (in ₹)
UpiApp app: Which app to use to do the transaction
String currency: Currently only supports INR
bool flexibleAmount: Set true to allow user to fill the amount
String merchantId: Merchant code if present
String receiverId: ID of the receiver
String receiverName: Name of receiver
String transactionNote: A note about the transaction
String transactionRefId: Reference Id of transaction
String url: For some extra information
UpiApp - It contains supported apps. It is also the model class for the apps returned by getAllUpiApps().
UpiResponse - You will use this to get response from the requested app.
UpiPaymentStatus - Use this to see if transaction was a success or not.
Custom Exception thrown by this Plugin (with self explanatory names)
UpiIndiaAppNotInstalledException
UpiIndiaUserCancelledException
UpiIndiaNullResponseException
UpiIndiaInvalidParametersException
UpiIndiaActivityMissingException
UpiIndiaAppsGetException
How to start transaction?
Step 1:
Import the Package:
import'package:upi_india/upi_india.dart';
Step 2:
Create UpiIndia object.
UpiIndia _upiIndia = UpiIndia();
Step 3:
Get list of all apps in the device which can handle UPI Intent, as shown.