eghlflutter 1.0.4

Flutter Android iOS

A new Flutter plugin.

eGHL Flutter Plugin #

An example of Flutter integration with eGHL SDK

Guidelines linking to SDK #

Refer here on how to link for iOS & Android platform

Usage #


Request Payment #

String paymentId = 'DEMO${new DateTime.now().millisecondsSinceEpoch}';

Map<String, dynamic> payment = {
  'TransactionType': 'SALE',
  'Amount': '1.00',
  'CurrencyCode': 'MYR',
  'PaymentId': paymentId,
  'OrderNumber': paymentId,
  'PaymentDesc': 'Testing Payment',
  'PymtMethod': 'ANY',

  'CustName': 'somebody',
  'CustEmail': 'somebody@someone.com',
  'CustPhone': '0123456789',

  'MerchantReturnURL': 'SDK',
  'MerchantCallbackURL': 'SDK',

  'ServiceId': 'SIT',
  'Password': 'sit12345',
  'LanguageCode': 'EN',
  'PageTimeout': '600',
  'PaymentGateway': true,    //default is true for staging, false for production
  'EnableCardPage': false,  //default is false
};

result = await Eghlflutter.executePayment(payment);

0
likes
70
pub points
52%
popularity

A new Flutter plugin.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

matthew.saw@ghl.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on eghlflutter