diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-10-08 17:46:39 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-10-08 17:46:39 +0800 |
commit | e92735978571b201a8aebac7fd0dae6dcccb65e2 (patch) | |
tree | 85f93ce0b04993cbd11496f7965d75bde133e844 /midtrans.h | |
parent | b36bcf5e0345b8d3dec427261d10450a4eae0b46 (diff) |
Init enum & rename param
Diffstat (limited to 'midtrans.h')
-rw-r--r-- | midtrans.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); |