payumoney_sdk 1.0.9 copy "payumoney_sdk: ^1.0.9" to clipboard
payumoney_sdk: ^1.0.9 copied to clipboard

PlatformAndroid

A new Payu plugin.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:payumoney_sdk/payumoney_sdk.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  final payu = PayumoneySdk();

  @override
  void initState() {
    super.initState();
    startPayment();
  }

  void startPayment() async {
    final data = await payu.buildPaymentParams(
        amount: "400.0",
        transactionId: "C2161646224785587",
        phone: "7899395319",
        productInfo: "Nike shoes",
        firstName: "Badal Sharma",
        email: "[email protected]",
        hash: "2973e780893f5b3ff593cf92891a3763f20a9fb55c84c734d4e317727b75ccbae45d9f0da97e28c4521c03c144335c082c8b6045a296dccb24d1f5bc5063afd9",
        isProduction: false,
        userCredentials: "7899395319",
        merchantKey: "mWI8Vl",
        salt: "cMDID7EG",
        merchantName: "Siply Services Pvt Ltd."
    );


  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Payumoney SDK'),
        ),
        body: Center(
          child: Column(
            children: [
              SizedBox(
                height: 100,
              ),
              TextButton(
                  onPressed: () {
                    startPayment();
                  },
                  child: Text("Tap me"))
            ],
          ),
        ),
      ),
    );
  }
}
5
likes
130
points
7
downloads

Publisher

unverified uploader

Weekly Downloads

A new Payu plugin.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on payumoney_sdk

Packages that implement payumoney_sdk