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

A BjPay Flutter package project.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:bjpay_sdk/bjpay_sdk.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'BjPay Test SDK',
      home: Scaffold(
        appBar: AppBar(title: const Text("BjPay Test SDK")),
        body: Center(
          child: Bjpay(
            totalAmount: 200,
            apiKey: "810b7168-ab08-4707-8e41-fbf1d8772388",
            callbackUrl: "https://webhook.site/ad4dfc5c-cc76-4192-8241-3599491e7242",
            onSuccess: (transactionId) {
              debugPrint("✅ Paiement réussi : $transactionId");
            },
            onFailure: (transactionId) {
              debugPrint("❌ Paiement échoué : $transactionId");
            },
          ),
        ),
      ),
    );
  }
}
0
likes
135
points
29
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A BjPay Flutter package project.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, webview_flutter

More

Packages that depend on bjpay_sdk