atomic_transact_flutter 3.17.0 copy "atomic_transact_flutter: ^3.17.0" to clipboard
atomic_transact_flutter: ^3.17.0 copied to clipboard

A Flutter plugin that provides a native implementation for the Atomic Transact SDK.

Atomic Transact for Flutter #

pub

A Flutter plugin that wraps the native Atomic Transact SDKs

Installation #

Add atomic_transact_flutter as a dependency in your pubspec.yaml file:

dependencies:
  ...
  atomic_transact_flutter: <version>

iOS Requirements #

  • Xcode 12.0 or greater
  • iOS 14.0 or greater

Android Requirements #

Set the minSdkVersion in android/app/build.gradle:

android {
    defaultConfig {
        minSdkVersion 21 // or greater
    }
}

Responding to data requests #

Transact emits a data request when it needs information that only your app can supply, such as card or identity details for a deferred payment method. Return an AtomicTransactDataResponse from onDataRequest and it is sent back to Transact. The handler may be asynchronous, so you can prompt the user or call your backend before responding.

Atomic.transact(
  config: config,
  onDataRequest: (request) async {
    // request.fields lists what Transact is asking for, e.g. ['card']
    final card = await promptForCard();

    return AtomicTransactDataResponse(
      card: AtomicTransactCardData(
        number: card.number,
        expiry: card.expiry, // MM/YY
        cvv: card.cvv,
        cardType: AtomicTransactCardType.debit,
      ),
      identity: const AtomicTransactIdentity(
        firstName: 'Ada',
        lastName: 'Lovelace',
        postalCode: '84043',
      ),
    );
  },
);

Returning null sends nothing back, and Transact keeps waiting for data.

More info at https://docs.atomicfi.com.

5
likes
150
points
1.34k
downloads

Documentation

API reference

Publisher

verified publisheratomicfi.com

Weekly Downloads

A Flutter plugin that provides a native implementation for the Atomic Transact SDK.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on atomic_transact_flutter

Packages that implement atomic_transact_flutter