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

Accept bitcoin and other cryptocurrencies from anywhere in the world.

Busha Commerce SDK #

Accept bitcoin and other cryptocurrencies from anywhere in the world.

Busha Commerce

Features #

Getting started (Installing) #

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  busha_commerce_flutter: <latest_version>
copied to clipboard

In your library add the following import:

import 'package:busha_commerce_flutter/busha_commerce_flutter.dart';
copied to clipboard

After adding, initialize the sdk as shown below in your widget or in any better way you see fit.

For the sdk to work, you must have a product_url, business token and customer details(email and name only).

class _SetupViewState extends State<SetupView> {
  late BushaCommerce bushaCommerce;

  @override
  void initState() {
    
    bushaCommerce = BushaCommerce(
        context: context,
        url: 'checkout_url',
        businessToken: 'live_key',
        paymentType: PaymentType.checkout,
        customerEmail: 'customer@gmail.com',
        customerName: 'customer');

    super.initState();
  }
}
copied to clipboard

Usage #

After installation and setup is done properly, you can start using the sdk

bushaCommerce.startPayment(
    onCompleted: (data){ /// Returns any charge action data after a payment attempt.
      ....
    },
    onClose: (data) {  /// Returns closed action message before any charge takes place.
      ...
    }
);
copied to clipboard

Additional information #

The url to be used to can only be gotten from the business and information is automatically gotten from it from the sdk to be used to continue the payment activities.

📝 Contributing, Issues and 🐛 Bug Reports #

This sdk project is open to contribution and open requests to fix bugs and make it better.

0
likes
70
points
69
downloads

Publisher

verified publisherbusha.co

Weekly Downloads

2024.09.16 - 2025.03.31

Accept bitcoin and other cryptocurrencies from anywhere in the world.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, flutter, flutter_svg, get_it, http, http_interceptor, intl, modal_bottom_sheet, qr_flutter, stacked, url_launcher, web_socket_channel

More

Packages that depend on busha_commerce_flutter