authnet_dart 1.0.2 copy "authnet_dart: ^1.0.2" to clipboard
authnet_dart: ^1.0.2 copied to clipboard

Community Authorize.Net SDK for Dart and Flutter: payments, CIM, ARB, reporting, tokenization, wallets, webhooks. Not affiliated with or endorsed by Authorize.Net or Visa.

example/authnet_dart_example.dart

import 'package:authnet_dart/authnet_dart.dart';

Future<void> main() async {
  const config = AuthNetConfig(
    apiLoginId: String.fromEnvironment('AUTHNET_API_LOGIN_ID'),
    transactionKey: String.fromEnvironment('AUTHNET_TRANSACTION_KEY'),
  );
  if (!config.isConfigured) {
    // Supply credentials through your runtime's secret mechanism. Never put a
    // production Transaction Key in source or a distributed Flutter binary.
    return;
  }

  final client = AuthNetClient(config: config);
  try {
    await client.authenticate();
  } finally {
    client.close();
  }
}
1
likes
160
points
125
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Community Authorize.Net SDK for Dart and Flutter: payments, CIM, ARB, reporting, tokenization, wallets, webhooks. Not affiliated with or endorsed by Authorize.Net or Visa.

Repository (GitHub)
View/report issues
Contributing

Topics

#authorize-net #payments #flutter #payment-gateway #subscriptions

License

MIT (license)

Dependencies

authnet_core, authnet_flutter, authnet_server

More

Packages that depend on authnet_dart