picpay 1.1.1 copy "picpay: ^1.1.1" to clipboard
picpay: ^1.1.1 copied to clipboard

PicPay E-Commerce API for Dart and Flutter for create Payments and check Payment status

example/picpay_example.dart

import 'package:picpay/picpay.dart';

void main() async {
  var token = '5b008f2367b2-1399-4e53-5b008c-5b008cef';

  var buyer = PicPayBuyer(
    "Luiz",
    "Eduardo",
    "123.345.678.99",
    "luizeof@gmail.com",
    "+551212345678",
  );

  var payment = await PicPayPayment.create(
    token,
    "9999999",
    'https://retorno.seusite.com.br',
    10,
    buyer,
  );

  print(payment.paymentUrl);

  print(payment.qrcodeContent);

  print(payment.qrcodeImage);

  var paymentStatus = await PicPayPaymentStatus.create(token, "1234");

  print(paymentStatus.status);

  var paymentCancel = await PicPayCancelPayment.create(token, "1234");

  print(paymentCancel.isRequestSuccess);
}
8
likes
40
pub points
0%
popularity

Publisher

verified publisherluizeof.dev

PicPay E-Commerce API for Dart and Flutter for create Payments and check Payment status

Repository (GitHub)
View/report issues

License

GPL-3.0 (LICENSE)

Dependencies

http

More

Packages that depend on picpay