Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit b76a669

Browse files
authored
Merge pull request #1 from rainxh11/main
+Moved to main repo
2 parents 988585f + e9717ce commit b76a669

File tree

15 files changed

+635
-7
lines changed

15 files changed

+635
-7
lines changed

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
25+
/pubspec.lock
26+
**/doc/api/
27+
.dart_tool/
28+
.packages
29+
build/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022-present, CHAKHOUM AHMED
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 38 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,47 @@
1+
<img src="https://raw.githubusercontent.com/rainxh11/chargily-epay-flutter/master/assets/chargily_flutter.svg" heigh="300">
2+
13
# chargily-epay-flutter
24
Flutter Package for Chargily ePay Gateway
35

4-
56
![Chargily ePay Gateway](https://raw.githubusercontent.com/Chargily/epay-gateway-php/main/assets/banner-1544x500.png "Chargily ePay Gateway")
67

78
This Plugin is to integrate ePayment gateway with Chargily easily.
89
- Currently support payment by **CIB / EDAHABIA** cards and soon by **Visa / Mastercard**
910
- This repo is recently created for **Flutter Package**, If you are a developer and want to collaborate to the development of this package, you are welcomed!
1011

11-
# Contribution tips
12-
1. Make a fork of this repo.
13-
2. Take a tour to our [API documentation here](https://dev.chargily.com/docs/#/epay_integration_via_api)
14-
3. Get your API Key/Secret from [ePay by Chargily](https://epay.chargily.com.dz) dashboard for free.
15-
4. Start developing.
16-
5. Finished? Push and merge.
12+
# Installation:
13+
Edit `pubspec.yaml` file to include [`chargily_flutter`](https://pub.dev/packages/chargily_flutter) package:
14+
```yaml
15+
dependencies:
16+
flutter:
17+
sdk: flutter
18+
chargily_flutter: any # <-- Add this
19+
```
20+
then run the command:
21+
```powershell
22+
flutter pub get
23+
# or
24+
dart pub get
25+
```
26+
27+
# Usage:
28+
```dart
29+
import 'package:chargily_flutter/chargily.dart'
30+
31+
void main(List<String> args) async {
32+
final chargilyClient = Chargily('[API_KEY]');
33+
34+
final invoice = Invoice(
35+
client: 'ahmed',
36+
clientEmail: 'rainxh11@gmail.com',
37+
amount: 1500,
38+
discount: 20.0,
39+
webhookUrl: 'http://webhookurl.com/',
40+
backUrl: 'http://backurl.com/',
41+
comment: 'Purchace',
42+
mode: PaymentMethod.CIB,
43+
invoiceNumber: '12345');
44+
45+
final response = await chargilyClient.createPayment(invoice);
46+
}
47+
```

assets/chargily_flutter.svg

Lines changed: 126 additions & 0 deletions
Loading

chargily_flutter/.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
12+
# IntelliJ related
13+
*.iml
14+
*.ipr
15+
*.iws
16+
.idea/
17+
18+
# The .vscode folder contains launch configuration and tasks you configure in
19+
# VS Code which you may wish to be included in version control, so this line
20+
# is commented out by default.
21+
#.vscode/
22+
23+
# Flutter/Dart/Pub related
24+
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
25+
/pubspec.lock
26+
**/doc/api/
27+
.dart_tool/
28+
.packages
29+
build/

chargily_flutter/.metadata

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: 5464c5bac742001448fe4fc0597be939379f88ea
8+
channel: stable
9+
10+
project_type: package

chargily_flutter/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 0.0.1
2+
3+
* TODO: Describe initial release.

chargily_flutter/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022-present, CHAKHOUM AHMED
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

chargily_flutter/README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# chargily-epay-flutter
2+
Flutter Package for Chargily ePay Gateway
3+
4+
![Chargily ePay Gateway](https://raw.githubusercontent.com/Chargily/epay-gateway-php/main/assets/banner-1544x500.png "Chargily ePay Gateway")
5+
6+
This Plugin is to integrate ePayment gateway with Chargily easily.
7+
- Currently support payment by **CIB / EDAHABIA** cards and soon by **Visa / Mastercard**
8+
- This repo is recently created for **Flutter Package**, If you are a developer and want to collaborate to the development of this package, you are welcomed!
9+
10+
# Installation:
11+
Edit `pubspec.yaml` file to include [`chargily_flutter`](https://pub.dev/packages/chargily_flutter) package:
12+
```yaml
13+
dependencies:
14+
flutter:
15+
sdk: flutter
16+
chargily_flutter: any # <-- Add this
17+
```
18+
then run the command:
19+
```powershell
20+
flutter pub get
21+
# or
22+
dart pub get
23+
```
24+
25+
# Usage:
26+
```dart
27+
import 'package:chargily_flutter/chargily.dart'
28+
29+
void main(List<String> args) async {
30+
final chargilyClient = Chargily('[API_KEY]');
31+
32+
final invoice = Invoice(
33+
client: 'ahmed',
34+
clientEmail: 'rainxh11@gmail.com',
35+
amount: 1500,
36+
discount: 20.0,
37+
webhookUrl: 'http://webhookurl.com/',
38+
backUrl: 'http://backurl.com/',
39+
comment: 'Purchace',
40+
mode: PaymentMethod.CIB,
41+
invoiceNumber: '12345');
42+
43+
final response = await chargilyClient.createPayment(invoice);
44+
}
45+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
# Additional information about this file can be found at
4+
# https://dart.dev/guides/language/analysis-options

0 commit comments

Comments
 (0)