PaymentDetails class
Order, customer, and redirect details for a single payment attempt.
Constructors
- PaymentDetails({required String orderNumber, required String customerTransactionId, required String billReferenceNo, required String merchantName, required String consumerName, required num amount, required String currency, required String email, required String msisdn, required String cnic, required String item, required String successRedirectUrl, required String failedRedirectUrl, String? description, String? date, String? successRedirectParam, num discountAmount = 0, bool isRecurringPayment = false, int attempts = 10, int expiryMinutes = 10, String? merchantCustomerToken, bool doCapture = false})
Properties
- amount → num
-
final
- attempts → int
-
How many payment attempts to allow on the created session.
final
- billReferenceNo → String
-
final
- cnic → String
-
final
- consumerName → String
-
final
- currency → String
-
final
- customerTransactionId → String
-
final
- date → String?
-
yyyy-MM-dd. Defaults to today if omitted.final - description → String?
-
Defaults to item if omitted.
final
- discountAmount → num
-
final
- doCapture → bool
-
Whether the gateway should auto-capture the payment on success, instead of authorize-only.
final
- email → String
-
final
- expiryMinutes → int
-
How many minutes the created session stays valid for.
final
- failedRedirectUrl → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isRecurringPayment → bool
-
final
- item → String
-
final
- merchantCustomerToken → String?
-
Reuses an existing customer record from a previous session; omit to create a new one.
final
- merchantName → String
-
Display-only; shown in the order summary, not sent to the checkout API.
final
- msisdn → String
-
final
- orderNumber → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- successRedirectParam → String?
-
final
- successRedirectUrl → String
-
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