### Installing Paystack Flutter SDK via Pub Source: https://github.com/paystackoss/paystack_flutter/blob/main/README.md Installs the Paystack Flutter SDK package into your project using the Flutter package manager, pub. ```shell flutter pub get paystack_flutter_sdk ``` -------------------------------- ### Initializing and Launching Paystack Payment Flow in Dart Source: https://github.com/paystackoss/paystack_flutter/blob/main/README.md Demonstrates how to initialize the Paystack SDK with a public key and then launch the payment flow using an access code. It includes basic error handling and logging for both initialization and launching. ```dart final _publicKey = "pk_domain_xxxxxx"; final _accessCode = "67joTry7t1jz2o"; final _paystack = Paystack(); initialize(String publicKey) async { try { final response = await _paystack.initialize(publicKey, true); if (response) { log("Sucessfully initialised the SDK"); } else { log("Unable to initialise the SDK"); } } on PlatformException catch (e) { log(e.message!); } } launch() async { String reference = ""; try { final response = await _paystack.launch(_accessCode); if (response.status) { reference = response.reference; log(reference); } else { log(response.message); } } on PlatformException catch (e) { log(e.message!); } setState(() { _reference = reference; }); } ``` -------------------------------- ### Importing Paystack Flutter SDK in Dart Source: https://github.com/paystackoss/paystack_flutter/blob/main/README.md Imports the necessary Paystack Flutter SDK library into a Dart file to use its functionalities. ```dart import 'package:paystack_flutter_sdk/paystack_flutter_sdk.dart'; ``` -------------------------------- ### Open iOS Runner Workspace in Shell Source: https://github.com/paystackoss/paystack_flutter/blob/main/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md Use this shell command to open the iOS part of your Flutter project in Xcode. This allows you to access and manage assets, including those for the launch screen, within Xcode's interface. ```Shell open ios/Runner.xcworkspace ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.