summaryrefslogtreecommitdiff
path: root/midtrans.h
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-10-08 17:46:39 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-10-08 17:46:39 +0800
commite92735978571b201a8aebac7fd0dae6dcccb65e2 (patch)
tree85f93ce0b04993cbd11496f7965d75bde133e844 /midtrans.h
parentb36bcf5e0345b8d3dec427261d10450a4eae0b46 (diff)
Init enum & rename param
Diffstat (limited to 'midtrans.h')
-rw-r--r--midtrans.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/midtrans.h b/midtrans.h
index 3bb8174..181e73c 100644
--- a/midtrans.h
+++ b/midtrans.h
@@ -7,7 +7,7 @@ struct midtrans_transaction {
};
enum midtrans_payment {
- MIDTRANS_CREDITCARD,
+ MIDTRANS_CREDITCARD = 0,
MIDTRANS_BANKTRANSFER,
MIDTRANS_BCA_KLIKBCA,
MIDTRANS_BCA_KLIKPAY,
@@ -36,7 +36,7 @@ extern "C" {
void midtrans_init(const char *api_key, const char *cainfo);
void midtrans_status(const char *order_id);
-void midtrans_charge(enum midtrans_payment payment, void *object,
+void midtrans_charge(enum midtrans_payment type, void *payment,
struct midtrans_transaction *transaction,
char *custom_fields[]);
void midtrans_cleanup();