OneTimePayment class
Main OneTimePayment Class
Constructors
- OneTimePayment({String? merchantID, String? merchantSecret, String? notifyUrl, String? currency, double? totalamount, String? orderID, String? itemDesc, String? cM1, String? cM2, String? fName, String? lName, String? email, String? phone, String? address, String? city, String? country, String? deliveryAddress, String? deliveryCity, String? deliveryCountry})
- OTP Object Creation.
Properties
- address ↔ String?
-
getter/setter pair
- amount ↔ double?
-
getter/setter pair
- city ↔ String?
-
getter/setter pair
- cM1 ↔ String?
-
getter/setter pair
- cM2 ↔ String?
-
getter/setter pair
- country ↔ String?
-
getter/setter pair
- currency ↔ String?
-
getter/setter pair
- deliveryAddress ↔ String?
-
Optional Parameters as stated in Payhere Documentation.
getter/setter pair
- deliveryCity ↔ String?
-
getter/setter pair
- deliveryCountry ↔ String?
-
getter/setter pair
- email ↔ String?
-
getter/setter pair
- fName ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemDesc ↔ String?
-
getter/setter pair
- lName ↔ String?
-
getter/setter pair
- merchantID ↔ String?
-
Put the Merchant ID here.
getter/setter pair
- merchantSecret ↔ String?
-
Put the Merchant secret here.
getter/setter pair
- mode ↔ String
-
By default payment mode is in Sandbox mode.
getter/setter pair
- notifyUrl ↔ String?
-
You can't test the nofify url on local host. you WILL need a server on the web.
getter/setter pair
- orderID ↔ String?
-
getter/setter pair
- phone ↔ String?
-
getter/setter pair
- 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
-
setProductionMode(
) → void -
setSandBoxMode(
) → void -
toJson(
) → Map - Convert the pyament object to json.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited