Android, iOS, macOS용으로 Paystack 결제 게이트웨이와의 원활한 통합을 가능하게 하는 Flutter 패키지입니다. 카드 결제, 은행 송금, 모바일 머니를 포함한 결제 처리를 간편한 API로 제공합니다. 테스트 및 라이브 환경 모두를 지원하여 안전한 결제 솔루션의 개발 및 배포를 쉽게 만듭니다. 아프리카 시장과 그 이상의 지역에서 결제를 수락하기 위해 신뢰할 수 있고 잘 문서화된 도구를 찾는 개발자를 위한 것입니다.
사용 사례
Flutter 앱에 Paystack 결제 통합
카드 및 은행 결제 처리
모바일 머니 거래 활성화
테스트 및 라이브 결제 모드 지원
전자상거래 애플리케이션 구축
주요 기능
네이티브 Paystack SDK 통합
다양한 결제 수단 지원
환경 구성(테스트/라이브)
사용하기 쉬운 결제 다이얼로그
크로스 플랫폼 호환성 (Android, iOS, macOS)
적합한 대상
전자상거래 앱을 구축하는 플러터 개발자
아프리카에서 결제를 수락하는 스타트업
안전한 결제 처리가 필요한 앱
게이트웨이로 Paystack을 사용하는 개발자
다중 플랫폼 결제 지원이 필요한 프로젝트
고려 사항
유효한 Paystack 계정 및 API 키가 필요합니다
결제 성공/실패 콜백에 적절한 처리가 필요합니다
추가 백엔드 검증이 필요할 수 있습니다
Paystack 이외의 결제 제공자에게 적합하지 않습니다
iOS 설정에는 추가 구성 단계가 필요할 수 있습니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
A Flutter package for making payments via Paystack Payment Gateway (https://paystack.com)
Features
:heavy_check_mark: All Paystack supported payment methods/channels
Mobile Money
Card
USSD
Bank Transfer
Bank
QR
EFT
:heavy_check_mark: Verifying Transactions
Supported Platforms
Android and
iOS
Prerequisites
Paystack secret key
Callback URL
No configuration required for this package works out of the box.
Initialize the transaction with the above transaction request.
final initializedTransaction = awaitPaymentService.initializeTransaction(request);
if (!initializedTransaction.status) {
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
backgroundColor: Colors.red,
content: Text(initializedTransaction.message),
));
return;
}
Open the payment modal to accept payment
final response = awaitPaymentService.showPaymentModal(
context,
transaction: initializedTransaction,
// Callback URL must match the one specified on your paystack dashboard,
callbackUrl: '...'
).then((_) async {
returnawaitPaymentService.verifyTransaction(
paystackSecretKey: '...',
initializedTransaction.data?.reference ?? request.reference,
);
});
print(response); // Result of the confirmed payment
Additional information
Visit the paystack documentation for more information https://paystack.com/docs/api/transaction
:pencil: Contributing, :disappointed: Issues and :bug: Bug Reports
This project is open to contributions.
Please feel very free to help improve the payment experience on Flutter.
Experienced an issue or want to report a bug? Please, report it here.