abacatepay 1.0.2+7
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 #
Additional information #
License #
Distributed under the MIT License. See LICENSE
for more information.