Last updated:
0 purchases
eghlflutter
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
Refer here on how to link for iOS & Android platform via pub.dev
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': '[email protected]',
'CustPhone': '0123456789',
'MerchantReturnURL': 'SDK', //merchant system's browser redirect
'MerchantCallBackURL': 'SDK', //server-to-server URL as an additional link to merchant's website
'ServiceId': 'SIT',
'Password': 'sit12345', //Include Password param if merchant don't wish to calculate HashValue
'HashValue': 'b67adasd676dd78s7dadd78dddads', //HashValue has to be calculated based on formula provided in eGHL API documentation
'LanguageCode': 'EN',
'PageTimeout': '600',
'PaymentGateway': true, //default is true for staging, false for production
'EnableCardPage': false, //default is false
'TriggerReturnURL': false, //default is false
};
result = await Eghlflutter.executePayment(payment);
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.