From 9a0446868b7052df8d9a0089d570fa5dfcc08682 Mon Sep 17 00:00:00 2001 From: Braxton Ward Date: Tue, 28 Oct 2025 16:00:27 -0600 Subject: [PATCH 1/3] chore: update ios sdk to 3.23.0 --- ios/atomic_transact_flutter.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/atomic_transact_flutter.podspec b/ios/atomic_transact_flutter.podspec index 5a4341e..dcf5f8c 100644 --- a/ios/atomic_transact_flutter.podspec +++ b/ios/atomic_transact_flutter.podspec @@ -23,6 +23,6 @@ A new flutter plugin project. s.swift_version = '5.0' # Atomic dependency - s.dependency 'AtomicSDK', '3.20.6' + s.dependency 'AtomicSDK', '3.23.0' end From 31bdd309fd580041fad01feedbe5390adcc07515 Mon Sep 17 00:00:00 2001 From: Braxton Ward Date: Tue, 28 Oct 2025 16:01:06 -0600 Subject: [PATCH 2/3] chore: update android sdk to 3.13.0 --- android/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/build.gradle b/android/build.gradle index 3ffe8aa..ee00e54 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -50,5 +50,5 @@ android { dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" - implementation "financial.atomic:transact:3.11.8" + implementation "financial.atomic:transact:3.13.0" } From 4791421b82d9cb89fde7c85c6de453384ce0d364 Mon Sep 17 00:00:00 2001 From: Braxton Ward Date: Wed, 29 Oct 2025 09:23:59 -0600 Subject: [PATCH 3/3] feat: add support for pay now deeplink option --- example/lib/main.dart | 16 +++++++++++----- lib/src/config.dart | 9 +++++++-- lib/src/types.dart | 3 +++ 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 8226925..7d867a3 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -15,11 +15,17 @@ class MyApp extends StatefulWidget { class _MyAppState extends State { void _onButtonPressed() { final AtomicConfig config = AtomicConfig( - scope: 'user-link', - publicToken: '', - tasks: [AtomicTask(product: AtomicProductType.deposit)], - theme: AtomicTheme(dark: true), - ); + publicToken: '', + scope: 'pay-link', + product: AtomicProductType.switchPayment, + theme: AtomicTheme(dark: true), + tasks: [ + AtomicTask(product: AtomicProductType.switchPayment), + ], + deeplink: AtomicDeeplink( + step: AtomicDeeplinkStep.search_company, + // payments: ['phone-bill'], + )); Atomic.transact( config: config, diff --git a/lib/src/config.dart b/lib/src/config.dart index ea265f2..0e5b551 100644 --- a/lib/src/config.dart +++ b/lib/src/config.dart @@ -77,11 +77,15 @@ class AtomicDeeplink { /// Required if the step is login_payroll. final String? connectorId; + /// Required if the step is pay_now. Accepts a list of payment types. + final List? payments; + AtomicDeeplink({ required this.step, this.companyId, this.companyName, this.connectorId, + this.payments, }); /// Returns a JSON object representation. @@ -91,6 +95,7 @@ class AtomicDeeplink { 'companyId': companyId, 'companyName': companyName, 'connectorId': connectorId, + 'payments': payments, }..removeWhere((key, value) => value == null); } } @@ -287,8 +292,8 @@ class AtomicConfig { 'publicToken': publicToken, 'scope': scope, 'tasks': tasks?.map((e) => e.toJson()).toList(), - 'product': product?.name, - 'additionalProduct': additionalProduct?.name, + 'product': product?.productName, + 'additionalProduct': additionalProduct?.productName, 'distribution': distribution?.toJson(), 'linkedAccount': linkedAccount, 'theme': theme?.toJson(), diff --git a/lib/src/types.dart b/lib/src/types.dart index 7c28988..0d1cdb8 100644 --- a/lib/src/types.dart +++ b/lib/src/types.dart @@ -39,6 +39,9 @@ enum AtomicDeeplinkStep { /// This value requires companyName and connectorId. login_payroll, + + /// This value requires payments parameter. + pay_now, } enum AtomicTransactCompletionType {