CheckoutPayload class
Bux Cancel API is used to cancel a generated payment link
-
req_id is the Reference ID from you (Unique ID, will be used for postback), can be your Product ID, Order ID or Transaction ID
-
amount Amount to be paid, excluding fees (20 pesos for OTC) , in pesos
-
description Can be the Product Count with name Or List or Product with Count, or Summary or Details of the Item Being Purchased
-
notification_url Endpoint where the status postback will be posted, implement on your backend a logic on creating an order
Other Params are Optional , but some you might want to add like email, contact, name, redirect_url, param1, param2
Constructors
- CheckoutPayload({required String req_id, required String client_id, required int amount, required String description, required String notification_url, int? expiry = 2, String? email, String? contact, String? name, String? redirect_url, String? param1, String? param2})
-
const
-
CheckoutPayload.fromJson(Map<
String, dynamic> json) -
factory
Properties
- amount → int
-
finalinherited
- client_id → String
-
finalinherited
- contact → String?
-
finalinherited
- description → String
-
finalinherited
- email → String?
-
finalinherited
- expiry → int?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
finalinherited
- notification_url → String
-
finalinherited
- param1 → String?
-
finalinherited
- param2 → String?
-
finalinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setterinherited
- redirect_url → String?
-
finalinherited
- req_id → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, String> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited