omipay_payment_gateway 0.0.1
omipay_payment_gateway: ^0.0.1 copied to clipboard
Omipay Gateway SDK
example/lib/main.dart
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:gateway_sdk/gateway_sdk.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({Key? key}) : super(key: key);
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Omipay Payment Gateway'),
),
body: Column(
children: const [
Expanded(child: GatewaySdk(
orderCode: 'OM_123456',//do merchant quy dinh
price: '50000',
paymentMethodId: 1095,
notifyUrl: 'http://yoursite.com/checkout/success.php',//your notify url
merchantId: '64995',//your merchant id
merchantPass: '2a1be5f04845770c7',//your merchant password
receiverEmail: 'merchant_email@gmail.com',//email merchant
)),
],
)
),
);
}
}