flutter_multipagos 0.0.3 copy "flutter_multipagos: ^0.0.3" to clipboard
flutter_multipagos: ^0.0.3 copied to clipboard

outdated

Multipagos flutter

Implementación de multipagos en flutter

Features #

Implementación de multipagos en flutter

Getting started #

Implementación de multipagos en flutter

Usage #

Implementación de multipagos en flutter

import 'package:flutter/material.dart';
import 'package:flutter_multipagos/flutter_multipagos.dart';
import 'package:flutter_multipagos/multipagos_requets.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter demo multipagos',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter demo multipagos'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final String url = "URL PROPORCIONADO POR MULTIPAGOS";

  final requestMultipagos = MultipagosRequest(
    mpAccount: "1",
    mpNode: "1",
    mpOrder: "1",
    mpReference: "1",
    mpConcept: "1",
    mpProduct: "1",
    mpAmount: "100.00",
    mpCurrency: "1",
    mpSignature:
        "b3f5f7431983df4892b572e4dd0c16817e76077e0b668cd53786e470860567f8",
    mpUrlFailure: "URL Pago no  exitoso del cliente",
    mpUrlsucces: "URL Pago exitoso del cliente",
    mpCustomername: "",
    mpEmail: "",
    mpPhone: "",
  );

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Multipagos(
            title: widget.title,
            multipagos: requestMultipagos,
            bbvaEnv: url));
  }
}

Additional information #

Implementación de multipagos en flutter

2
likes
0
points
38
downloads

Publisher

unverified uploader

Weekly Downloads

Multipagos flutter

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, webview_flutter

More

Packages that depend on flutter_multipagos