hipay 0.0.2 copy "hipay: ^0.0.2" to clipboard
hipay: ^0.0.2 copied to clipboard

A Flutter package for processing Pix payments with the lowest fees in the market.

Hipay Payments #

A Pix payment platform with the lowest fees in the market.

📄 Documentation #


🚀 Getting Started #

import 'package:hipay/hipay.dart';

final hipay = Hipay(apiKey: apiKeySandBox, enableLogs: true, sandbox: true);

💳 Creating a Transaction #

import 'package:hipay/hipay.dart';

final hipay = Hipay(apiKey: apiKeySandBox, enableLogs: true, sandbox: true);

final transaction = await hipay.transactions.createTransaction(
  amount: 500,
  paymentMethod: HipayPaymentMethod.pix,
  description: 'Order 02',
  expiresIn: DateTime.now().add(const Duration(hours: 2)),
  customerId: 'cus_389b223dc7a042609e8ff2f5877a3a',
  splits: [
    HipaySplit(
      amount: 450,
      chargeProcessingFee: true,
      liable: true,
      recipientId: 're_aa7619f5ab68484c9a5c0399f4fd',
    ),
    HipaySplit(
      amount: 50,
      chargeProcessingFee: false,
      liable: false,
      recipientId: 're_ff58bfaa64d94b148aa3d3b4dcb74',
    ),
  ],
);

Feel free to reach out if you need more examples or advanced usage!

0
likes
130
points
70
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package for processing Pix payments with the lowest fees in the market.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dio, talker, talker_dio_logger

More

Packages that depend on hipay