budpay_flutter 0.0.4 copy "budpay_flutter: ^0.0.4" to clipboard
budpay_flutter: ^0.0.4 copied to clipboard

A Flutter plugin for make paymen, integrating payment ways for end users, airtime purchasing and lots more.

Budpay Flutter #

Budpay is a payment gateway, budpay_flutter make is of Budpay API for easy use of Budpay. It's allow flutter developers to make quick call to Budpay in no time. budpay_flutter contain payment integration, bills payments, fast and automated transfers, and lot more in more than 198 countries. Budpay is fast and secure.

NOTE - you must pass the parameters correctly and accordingly. hover over the method name for detailed information. #

Features #

This package can be used to payment integration, bills payments, fast and automated transfers, and lot more. You can also generate virtual banks accounts, send money to your friends and families via bank transfer. It's also include a standardCheckout payment system.

Getting started #

To get started, run the following command in your project directory terminal: flutter pub add budpay_flutter

This will add budpay_flutter to your project.

Usage #

Setup your projectName/main.dart as follow

void main() async {
  await BudpayPlugin.initialize(
    publicKey: "pk_test_jv8yueg1ycwkowviqw91swbewglvziwde9idpd",
    secretKey: "sk_test_3xd7ybrhumna6sn9kumn3eqljal6lghshb3uiu9",
    signatureKey: ""
  ).then((_) {
    runApp(const MyApp());
  });
}

In the above code block you initalize budpay_flutter in you main function.

- Accept Payment #

// Initialize BudpayPlugin constructor
final budPay = BudpayPlugin();
// creating reference variable: [OPTIONAL]
String reference = DateTime.now().millisecondsSinceEpoch.toString();
void _standardCheckout() {
// standardCheckout payment with card
budPay
      .standardCheckout(
    payloads: CheckOut(
      email: _emailController.text, // user email
      currency: _currencyController.text
          .toUpperCase(), // currency code e.g [NGN, GHS, USD]
      reference: reference, // reference code [OPTIONAL]
      callBackURL: _callbackURLController.text, // reference code [OPTIONAL]
      amount: _amountController.text, // amount
    ),
    context: context, // required BuildContext to show popup
  )
  .then((response) => print(response)); // TODO worked
}

Others functions for accept payment includes

budpay.verifyTransaction();
budpay.getAllTransaction();
budpay.getSingleTransaction();
budpay.payWithBankTransfer();

- Payment Features #

 void _requestPayment() {
    // Request Payment
    budPay
        .requestPayment(
          payloads: RequestPayment(
            description:
                "testing payment request", // description for the bank transfer
            recipient:
                "toluxsys@yahoo.ca,07036218209,sam@bud.africa,08161112404",
            currency: "NGN", // currency code e.g [NGN, GHS, USD]
            amount: "200",
          ),
        )
        .then((response) => print(response));
  }

Others functions for payment features includes

budpay.createPaymentLink();
budpay.createCustomer();
budpay.createVirtualAccount();
budpay.getVirtualAccounts();
budpay.createRefund();
budpay.getRefund();
budpay.getRefunds();

- Payouts #

void _singlePayout() {
  budPay
      .singlePayout(
        payloads: SingleTransfer(
          accountNumber: "0050883605",
          bankCode: "000013",
          amount: "2000",
          narration: "Test transfer",
          bankName: "GUARANTY TRUST BANK",
          paymentMode: "momo",
          currency: "NGN",
        ),
      )
      .then((response) => print(response));
}

Others functions for payout includes

budpay.bankList();
budpay.bankListWithSpecificCurrency();
budpay.accountNameValidation();
budpay.bulkPayout();
budpay.verifyPayout();
budpay.getListAllPayout();
budpay.payoutFee();
budpay.walletBalance();
budpay.walletTransaction();

- Bills Payment #

This allow you you pay your bills, example airtime purchase, internet purchases, television subscriptions and more.

void _airtimeTopUp() {
  budPay
      .airtimeTopUp(
        payload: Airtime(
          provider: "MTN",
          number: "07036218209",
          amount: "100",
          reference: reference,
        ),
      )
      .then((response) => print(response));
}

Others functions for bill payment includes

budpay.airtimeProviders();
budpay.getInternetProviders();
budpay.getAllInternetDataPlans();
budpay.internetTopUp();
budpay.getTvs();
budpay.getTvPackages();
budpay.tvValidate();
budpay.payTv();
budpay.getElectricity();
budpay.validateElectricity();
budpay.electricityRecharge();

For more example, check out the example Folder.

License #

This project is licensed under the MIT License. See the LICENSE file for details.

Author information #

This library is create by Whitecoode, for more information contact via Gmail at yahyahridwan665@gmail.com.Follow on Github Ibnyahyah and Twitter Whitecoode

1
likes
125
pub points
0%
popularity

Publisher

verified publisherwhitecoode.com

A Flutter plugin for make paymen, integrating payment ways for end users, airtime purchasing and lots more.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, http, webview_flutter

More

Packages that depend on budpay_flutter