summaryrefslogtreecommitdiff
path: root/midtrans.dart
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-11-03 17:59:20 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-11-03 17:59:20 +0800
commit1745915fc00f3b2bf0720087afbb97415ab2ad92 (patch)
treecaa75eac210fb989587f7ccc6b294b3dd7308e6f /midtrans.dart
parent3b958007419bf3f1164aa0ab6fd68d84b5830133 (diff)
Reorder status function/method
Diffstat (limited to 'midtrans.dart')
-rw-r--r--midtrans.dart18
1 files changed, 9 insertions, 9 deletions
diff --git a/midtrans.dart b/midtrans.dart
index 8779153..b61b591 100644
--- a/midtrans.dart
+++ b/midtrans.dart
@@ -36,15 +36,6 @@ class Midtrans {
calloc.free(pemUtf8);
}
- String status(String orderID) {
- final order_id = orderID.toNativeUtf8();
- final status = dylib.lookupFunction
- <MidtransStatus, MidtransStatus>
- ('midtrans_status')(order_id).toDartString();
- calloc.free(order_id);
- return status;
- }
-
String chargeBanktransfer(String bank, String orderID,
int grossAmount) {
final bankUtf8 = bank.toNativeUtf8();
@@ -65,6 +56,15 @@ class Midtrans {
return vaNumber;
}
+ String status(String orderID) {
+ final order_id = orderID.toNativeUtf8();
+ final status = dylib.lookupFunction
+ <MidtransStatus, MidtransStatus>
+ ('midtrans_status')(order_id).toDartString();
+ calloc.free(order_id);
+ return status;
+ }
+
void cleanup() {
dylib.lookupFunction<Void Function(), void Function()>
('midtrans_cleanup')();