PaystackCustomField class

Represents a custom field that appears on the Paystack Dashboard when viewing a transaction.

Pass a list of these via PayWithPayStack.now's customFields parameter.

Example:

customFields: [
  PaystackCustomField(
    displayName: 'Order ID',
    variableName: 'order_id',
    value: '#ORD-1234',
  ),
  PaystackCustomField(
    displayName: 'Customer Phone',
    variableName: 'phone',
    value: '+233244000000',
  ),
],

Constructors

PaystackCustomField({required String displayName, required String variableName, required String value})
const

Properties

displayName String
The label shown on the Paystack Dashboard for this field.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The value of this field.
final
variableName String
An internal snake_case key for this field.
final

Methods

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

Operators

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