gatee_payment 1.0.2
gatee_payment: ^1.0.2 copied to clipboard
Seamlessly integrate Gate-E functionality into Flutter apps with the GateE_SDK package. Expedite integration, empower customization, and simplify feature incorporation.
gatee_payemnt #
A streamlined package for seamless integration of Gate-E functionality into Flutter applications. Expedite the integration process, empower customization, and simplify the incorporation of Gate-E features.
Screenshots #

Features #
- Effortless Integration: Seamlessly integrate Gate-E capabilities into your Flutter apps with minimal effort.
- Flexible Customization: Tailor the design and settings of the Gate-E integration to match your project's unique requirements.
- Time-Saving Solution: Save development time by utilizing pre-built components and streamlined integration processes.
Getting Started #
Before you start using the package:
1- Contact our business team (Gate-E): support@gate-e.com
2- Sign the agreement
3- pay for the service
4- Received the documents and agreements
5- Register in Gate-e portal
6- wait approval from provider
7- Recived approvel and Activate Payment Gateways - PG team
Usage #
To use this plugin, add gatee_payment as a dependency in your pubspec.yaml file.
Here's a quick example of how you can use the GateE_SDK package:
1- The payment process starts by sending an initiating payment request through the “Initiate Payment” API.
- Test environment: https://www.test.gate-e.com/api/process.php
- Live environment: https://www.gate-e.com/api/process.php
- Required parameters:
- unique_id
- api_type = 2
- amount
- callback: if you are using test mode https://www.test.gate-e.com/api/callback.php and if live mode https://www.gate-e.com/api/callback.php,
- action = background (the system will return response in JSON format)
- calculated_hash ( how to calculate hash: see bellow function )
String calculateHash(String hash, Map<String, String> data) {
data = SplayTreeMap<String, String>.from(data);
var data1 = '';
data.forEach((key, value) {
if (key != 'data' && key != 'note') {
data1 += '$key=$value;';
}
});
data1 += 'hash=$hash;';
var bytes = utf8.encode(data1);
var digest = md5.convert(bytes);
var calculatedHash = hex.encode(digest.bytes);
return calculatedHash;
}
2- Import package
import 'package:GateE_SDK/payment_method.dart';
3- After getting payment_id , key send from process apithem to PaymentMethods()
ElevatedButton(
child: Text('SDK'),
onPressed: () async {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => PaymentMethods(paymentid: paymentId, keyid: key),
),
);
},
),