gatee_payment 1.0.0 copy "gatee_payment: ^1.0.0" to clipboard
gatee_payment: ^1.0.0 copied to clipboard

outdated

Seamlessly integrate Gate-E functionality into Flutter apps with the GateE_SDK package. Expedite integration, empower customization, and simplify feature incorporation.

GateE_SDK #

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 #

Screenshot 1

Screenshot 2

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) 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_SDK 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 as a string
  • api_type = 2 as string
  • amount as a double
  • 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 has: 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 
```dart
import 'package:GateE_SDK/payment_method.dart';

3- After getting payment_id , key send them to PaymentMethods()

ElevatedButton(
              child: Text('SDK'),
              onPressed: () async {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                    builder: (context) => PaymentMethods(
                        paymentid: paymentId, keyid: _keyid.text),
                  ),
                );
              },
            ),
2
likes
0
points
15
downloads

Publisher

unverified uploader

Weekly Downloads

Seamlessly integrate Gate-E functionality into Flutter apps with the GateE_SDK package. Expedite integration, empower customization, and simplify feature incorporation.

Homepage

License

unknown (license)

Dependencies

awesome_dialog, flutter, flutter_inappwebview, flutter_native_screenshot, flutter_share, flutter_svg, http, image, intl, jovial_svg, loading_animation_widget, path_provider, screenshot, share_plus, url_launcher

More

Packages that depend on gatee_payment