Configuration
Set up YagoutPay configuration and credentials for your Flutter app.
Configure your YagoutPay integration with the proper credentials and environment settings. This guide covers both UAT and production configurations.
Create Configuration File
Create lib/config/yagoutpay_config.dart:
class YagoutPayConfig {
// Environment Toggle
static const bool useUat = true; // Set to false for production
// UAT URLs
static const String hostedUatUrl =
'https://uatcheckout.yagoutpay.com/ms-transaction-core-1-0/paymentRedirection/checksumGatewayPage';
static const String apiUatUrl =
'https://uatcheckout.yagoutpay.com/ms-transaction-core-1-0/apiRedirection/apiIntegration';
// Test Credentials (UAT)
static const String aggregatorId = 'yagout';
static const String hostedMerchantId = '202508080001';
static const String hostedKey = 'IG3CNW5uNrUO2mU2htUOWb9rgXCF7XMAXmL63d7wNZo=';
static const String apiMerchantId = '202508080001';
static const String apiKey = 'IG3CNW5uNrUO2mU2htUOWb9rgXCF7XMAXmL63d7wNZo=';
// Payment Gateway Details
static const String pgId = '67ee846571e740418d688c3f';
static const String paymode = 'WA';
static const String schemeId = '7';
static const String walletType = 'telebirr';
// Dynamic URLs based on environment
static String get hostedUrl => useUat ? hostedUatUrl : hostedProductionUrl;
static String get apiUrl => useUat ? apiUatUrl : apiProductionUrl;
}
Environment Setup
Configure your environment settings:
IMPORTANT
Always use UAT environment for testing. Switch to production only when ready to go live.
Test Credentials
Use these credentials for development and testing:
- Merchant ID: 202508080001
- API Key: IG3CNW5uNrUO2mU2htUOWb9rgXCF7XMAXmL63d7wNZo=
- Aggregator ID: yagout
- Payment Gateway ID: 67ee846571e740418d688c3f