nhn_payment 0.1.0 copy "nhn_payment: ^0.1.0" to clipboard
nhn_payment: ^0.1.0 copied to clipboard

Flutter NHN payment plugin widget.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:nhn_payment/nhn_payment.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('Plugin example app'),
        ),
        body: NhnPayment(
          url: "https://testsmpay.kcp.co.kr/pay/mobileGW.kcp",
          siteCode: "T0000",
          paymentNumber:
              "P12203", // Required to register information on the server
          payAmount: 10000, // Required to register information on the server
          productName: "ProductName",
          paymentMethod: "CARD",
          returnUrl: "returnUrl", // Server Return URL
          approvalKey: "approvalKey", // approvalKey
          payUrl: "https://testsmpay.kcp.co.kr/pay/mobileGW.kcp",
          shopUserId: "1",
          traceNo: "T00001L7892",
        ),
      ),
    );
  }
}
2
likes
110
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter NHN payment plugin widget.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, webview_flutter

More

Packages that depend on nhn_payment

Packages that implement nhn_payment