PhonePeConfig constructor
const
PhonePeConfig({})
Creates a new PhonePeConfig.
environment
must be set to either PhonePeEnvironment.sandbox or PhonePeEnvironment.production.merchantId
,saltKey
, andsaltIndex
must be provided as part of your credentials.- Optional values such as
headers
,enableLogs
,packageName
, andflowId
can 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 = '',
});