OpenPaymentPayload class
OpenPaymentPayload contains all the fields required to initiate a payment.
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- OpenPaymentPayload({required String accessToken, required String paymentToken, required PaymentEnvironment environment, String? logoUrl, String? mainColor, String? errorColor})
-
OpenPaymentPayload.fromJson(Map<
String, dynamic> json) -
factory
Properties
- accessToken → String
-
Access key is a unique key which you can generate from your Open dashboard.
final
- environment → PaymentEnvironment
-
Choose any one from PaymentEnvironment.sandbox or PaymentEnvironment.live.
final
- errorColor → String?
-
Optional
HexColor to change the icons/ error lines / error messages color.final - hashCode → int
-
The hash code for this object.
no setterinherited
- logoUrl → String?
-
Optional
image url for setting Logo.final - mainColor → String?
-
Optional
HexColor to change the background colorfinal - paymentToken → String
-
Create it with the following * link.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited