atoa_flutter_sdk

Last updated:

0 purchases

atoa_flutter_sdk Image
atoa_flutter_sdk Images
Add to Cart

Description:

atoa flutter sdk

Atoa Sdk #
Flutter plugin for Atoa SDK.





Installation
Usage
Example
Complete Demo App
Handle Redirection (Optional)

| Please refer our official flutter documentation here.
Installation #
Run following to add Atoa SDK to your flutter project
flutter pub add atoa_flutter_sdk
copied to clipboard
Usage #
Sample code to integrate can be found in example/lib/main.dart.
Import package
import 'package:atoa_flutter_sdk/atoa_flutter_sdk.dart';
copied to clipboard
Show Payment Dialog
It's a full screen dialog which shows all the available bank list then once user selects the bank. They will be redirected to their bank app or website.
final paymentDetails = await AtoaSdk.show(
context,
paymentId: '<payment-request-id>',
env: AtoaEnv.prod, /// or AtoaEnv.sandbox
);
copied to clipboard
Handle Response
if (paymentDetails != null) {
if(paymentDetails.isCompleted) {
// handle success
} else {
// handle failure / pending statuses
}
} else {
// Bottom sheet was dismissed or encountered an error
}
copied to clipboard
Handle Redirection (Optional) #
Call the payment-process API to generate a payment. In response, store the paymentRequestId on the backend. The redirectUrl, which can be passed as body parameters, redirects to your website and then opens your app via deep linking.
Resources For deep-linking

Flutter Docs
Code With Andrea

For any issues or inquiries, please contact [email protected].

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.