abacatepay 1.0.2+7 copy "abacatepay: ^1.0.2+7" to clipboard
abacatepay: ^1.0.2+7 copied to clipboard

AbacatePay Dart/Flutter SDK for you to start receiving payments in seconds


A Dart/Flutter SDK for AbacatePay payment API.

Features #

  • Customers
    • ✅ Create customers
    • ✅ List customers
  • Billing
    • ✅ Create billing
    • ✅ List billings
  • PixQrCode
    • ✅ Create QrCode PIX
    • ✅ Simulate payment
    • ✅ Check status
  • Coupons
    • ✅ List your coupons
    • ✅ Create new coupon

Getting started #

Add this package to your dart/flutter project pubspec.yaml and import it to your code:

import 'package:abacatepay/abacatepay.dart';

Usage #

final abacatePay = AbacatePay(apiKey: 'your-abacatepay-api-key');

Customers Methods #

final abacateCustomers = abacatePay.customers;

final customers = await customers.listCustomers(); // List<AbacatePayCustomerResponse>

final createdCustomer = await abacateCustomers.createCustomer(AbacatePayCustomerData); // AbacatePayCustomerResponse

Billing Methods #

final abacateBillings = abacatePay.billing;

final billings = await abacateBillings.listBillings(); // List<AbacatePayBillingResponse>

final createdBilling = await abacateBillings.createBilling(AbacatePayBillingData); // AbacatePayBillingResponse

PixQrCode Methods #

final abacatePixQrCode = abacatePay.pixQrCode;

final createdPayment = await abacatePixQrCode.createPayment(AbacatePayPixQrCodeData); // List<AbacatePayPixQrCodeResponse>

final paymentStatus = await abacatePixQrCode.simulatePayment(String qrCodePixID); // AbacatePayPixQrCodeStatusResponse

final simulatedPayment = await abacatePixQrCode.checkPaymentStatus(String qrCodePixID); // AbacatePayPixQrCodeStatusResponse

Coupons Methods #

final abacateCoupons = abacatePay.coupons;

final createdCoupon = await abacateCoupons.createCoupon(AbacatePayCouponData); // AbacatePayCouponResponse

final coupons = await abacateCoupons.lisCounpons(); // List<AbacatePayCouponResponse>

Sample video #

Watch it here!

Additional information #

License #

Distributed under the MIT License. See LICENSE for more information.

0
likes
160
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

AbacatePay Dart/Flutter SDK for you to start receiving payments in seconds

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

cronet_http, cupertino_http, flutter, http, http_interceptor

More

Packages that depend on abacatepay