PhonePeConfig constructor
const
PhonePeConfig({})
Creates a new PhonePeConfig.
environmentmust be set to either PhonePeEnvironment.sandbox or PhonePeEnvironment.production.merchantId,saltKey, andsaltIndexmust be provided as part of your credentials.- Optional values such as
headers,enableLogs,packageName, andflowIdcan be used to customize the behavior.
Implementation
const PhonePeConfig({
required this.environment,
required this.merchantId,
required this.saltKey,
required this.saltIndex,
this.headers = const {},
this.enableLogs = true,
this.packageName = 'com.phonepe.simulator',
this.flowId = '',
});