PaystackChannel enum

Represents the available Paystack payment channels.

Pass a list of these values to PayWithPayStack.now via the channels parameter to control which payment options are shown to the user.

Example:

channels: [PaystackChannel.card, PaystackChannel.mobileMoney]

Note: Channel availability depends on your Paystack account settings and the customer's country.

Inheritance
Available extensions

Values

card → const PaystackChannel

Standard card payment (Visa, Mastercard, Verve, etc.)

const PaystackChannel('card')
bank → const PaystackChannel

Direct bank debit

const PaystackChannel('bank')
ussd → const PaystackChannel

USSD short-code payment

const PaystackChannel('ussd')
qr → const PaystackChannel

QR code scan-to-pay

const PaystackChannel('qr')
mobileMoney → const PaystackChannel

Mobile Money (e.g. MTN MoMo, Vodafone Cash)

const PaystackChannel('mobile_money')
bankTransfer → const PaystackChannel

Bank transfer (virtual account / dynamic sort code)

const PaystackChannel('bank_transfer')
eft → const PaystackChannel

EFT (Electronic Funds Transfer — South Africa)

const PaystackChannel('eft')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The raw string value sent to the Paystack API.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromString(String value) PaystackChannel?
Returns a PaystackChannel from its raw string value, or null if no match is found.
toStringList(List<PaystackChannel> channels) List<String>
Converts a list of PaystackChannel values to the string list expected by the Paystack API.

Constants

values → const List<PaystackChannel>
A constant List of the values in this enum, in order of their declaration.