ariyanpay 0.0.5 copy "ariyanpay: ^0.0.5" to clipboard
ariyanpay: ^0.0.5 copied to clipboard

Flutter package for ariyanpay by Ariyan Shipu! its a custom payment gateway

Ariyanpay Payment Gateway Flutter Package By Ariyan Shipu

Pub
License
PRs Welcome Maintenance
Open Source Love svg1

This is a Flutter package for ariyanpay Payment Gateway. This package can be used in flutter project. Ariyan Shipu was created this package while working for a project and thought to release for all so that it helps.

⚠️ Please note that, you have to contact with ariyanpay sales team for any kind of dev or production access keys. We don't provide any test account or access keys or don't contact us for such.

Check the package in github and also available in flutter/dart package

Github Facebook Instagram LinkedIn YouTube

How to use: #

Depend on it, Run this command With Flutter:

$ flutter pub add ariyanpay  

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):

dependencies:  
ariyanpay: ^0.0.3

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more. Import it, Now in your Dart code, you can use:

import 'package:ariyanpay/ariyanpay.dart';  
import 'package:ariyanpay/models/customer_model.dart';  

Features #

  • Pay using ariyanpay

Usage #

Official Link for API documentation and demo checkout

Make a Payment #

Sandbox

Ariyanpay.createPayment(  
context: context,  
customer: CustomerDetails(  
fullName: 'Ariyan Shipu',  
),  
amount: '50', 
 valueA: '',
valueB: '',
valueC: '',
valueD: '',
valueE: '',
valueF: '',
valueG: '',

);  

Production

Ariyanpay.createPayment(  
context: context,  
customer: CustomerDetails(  
fullName: 'Ariyan Shipu',  
),  
amount: '50',   
)  

Make sure to replace the provided credentials with your own ariyanpay production credentials.

Response

final response = await ariyanpay.createPayment(  
....  
....  
)  

Response Sample

RequestResponse(  
fullName: "Ariyan Shipu",  
email: "ariyanshipuofficial@gmail.com",  
amount: "50.00","fee":"0.00",  
chargedAmount: "50.00",  
invoiceId: "a19Aun0gPxIqBVjnCfpL",  
paymentMethod: "bkash",  
senderNumber: "675675656765",  
transactionId: "FGHGFHJGHG",  
date: "2024-04-09 12:01:28",  
status: ResponseStatus.completed,  
);  

Error Handling #

The methods mentioned above may throw a status. You can catch and handle the status using a if-else block:

if (response.success == "true") {  
// handle on complete  
}  
  
if (response.status == ResponseStatus.canceled) {  
// handle on cancel  
}  
  
if (response.status == ResponseStatus.pending) {  
// handle on pending  
}  

Examples for see the /example folder.

y

Importance Notes #

Contributing #

Core Maintainer

Contributions to the ariyanpay package are welcome. Please note the following guidelines before submitting your pull request.

  • Follow Effective Dart: Style coding standards.
  • Read ariyanpay API documentations first.Please contact with ariyanpay for their api documentation and sandbox access.

License #

ariyanpay package is licensed under the BSD 3-Clause License.

Copyright 2024 Ariyan Shipu. We are not affiliated with ariyanpay and don't give any guarantee.

0
likes
130
points
57
downloads

Publisher

verified publisherariyanshipu.me

Weekly Downloads

Flutter package for ariyanpay by Ariyan Shipu! its a custom payment gateway

Homepage
Repository (GitHub)
View/report issues

Topics

#flutter #payment #ariyanpay #ariyanshipuofficial

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

flutter, get, http, lottie, webview_flutter

More

Packages that depend on ariyanpay