Flutter Installation
Install YagoutPay Flutter SDK and set up your development environment.
YagoutPay provides multiple payment integration methods for Flutter applications, offering both hosted and seamless payment experiences. This guide covers the complete setup process.
Follow this step-by-step guide to integrate YagoutPay payments into your Flutter application with minimal setup.
Prerequisites
- Flutter SDK 3.0.0 or higher
- Dart SDK 3.0.0 or higher
- YagoutPay merchant account
- Valid API credentials
Add Dependencies
Add the following dependencies to your pubspec.yaml:
dependencies:
flutter:
sdk: flutter
http: ^1.1.0
webview_flutter: ^4.4.2
provider: ^6.1.1
crypto: ^3.0.3
Install Dependencies
flutter pub get
Import Required Packages
import 'package:http/http.dart' as http;
import 'package:webview_flutter/webview_flutter.dart';
import 'package:provider/provider.dart';
import 'package:crypto/crypto.dart';
import 'dart:convert';
import 'dart:math';
NEXT STEPS
After installation, proceed to Configuration to set up your YagoutPay credentials and start processing payments.