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

outdated

Flutter budpay 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 [...]

budpay_flutter allow you to utilize all budpay API utilities in budpay_flutter SDK. This package can be used to payment integration, bills payments, fast and automated transfers, and lot more in more than 198 countries. Budpay is fast and secure.

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 checkout 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.

// BudpayPlugin constructor
final budPay = BudpayPlugin();

// creating reference variable: [OPTIONAL]
String reference = DateTime.now().millisecondsSinceEpoch.toString();
void _checkOut() {
// checkout payment with card
budPay
    .checkOut(
        payloads: CheckOut(
        email: "customer@gmail.com", // user email
        currency: "NGN", // currency code e.g [NGN, GHS, USD]
        reference: reference, // reference code [OPTIONAL]
        callBackURL: "", // reference code [OPTIONAL]
        amount: "20000", // amount
        ),
    )
    .then((response) => print(response)); // TODO worked
}

void _payWithBankTransfer() {
// pay with bank transfer
budPay
    .payWithBankTransfer(
        payloads: BankTransfer(
        email: "test@test.com",
        fullName: "white coode",
        currency: "NGN", // currency code e.g [NGN, GHS, USD]
        amount: "100",
        reference: reference,
        ),
    )
    .then((response) => print(response)); // TODO Work
}
// Airtime topup
void _airtimeTopUp() {
budPay
.airtimeTopUp(
    payload: Airtime(
    provider: "MTN",
    number: "07036218209",
    amount: "100",
    reference: reference,
    ),
)
.then((response) => print(response));
}

For more example, check out the example Folder.

Additional information #

This library is create by Whitecoode, for more information contact via Gmail at yahyahridwan665@gmail.com.

1
likes
0
points
45
downloads

Publisher

verified publisherwhitecoode.com

Weekly Downloads

Flutter budpay 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 checkout payment system.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on budpay_flutter