seekerpay_shop 1.0.0 copy "seekerpay_shop: ^1.0.0" to clipboard
seekerpay_shop: ^1.0.0 copied to clipboard

Shopping cart and USD checkout payment request for SeekerPay

seekerpay_shop #

Shopping cart and USD checkout payment request for SeekerPay.

Features #

  • ShoppingItem — barcode, name, USD price, quantity, persisted locally.
  • ShoppingCartService — Riverpod StateNotifier backed by SharedPreferences.
  • ShopCheckoutRequest — encodes/decodes spay:checkout?amount=X.XX&currency=USD for QR / NFC / Bluetooth transmission.

Usage #

import 'package:seekerpay_shop/seekerpay_shop.dart';

// Read cart state
final cart = ref.watch(shoppingCartProvider);
print('Total: \$${cart.totalUsd.toStringAsFixed(2)}');

// Add item
ref.read(shoppingCartProvider.notifier).addItem(
  ShoppingItem(
    id: DateTime.now().millisecondsSinceEpoch.toString(),
    name: 'Apple',
    barcode: '012345678905',
    priceUsd: 1.29,
    addedAt: DateTime.now(),
  ),
);

// Build checkout URL for QR / NFC / BT
final request = ShopCheckoutRequest(amountUsd: cart.totalUsd);
final url = request.encode(); // spay:checkout?amount=1.29&currency=USD
0
likes
0
points
155
downloads

Publisher

verified publisherseekerpay.live

Weekly Downloads

Shopping cart and USD checkout payment request for SeekerPay

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, flutter_riverpod, shared_preferences

More

Packages that depend on seekerpay_shop