summaryrefslogtreecommitdiff
path: root/midtrans.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-12-10 19:03:04 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-12-10 19:03:04 +0800
commite0ea21dcfc7638c481f8c1875e711305b7ebb511 (patch)
treeb786fec04f61571ae64f6f3ca27b39f97919bd23 /midtrans.c
parent6537a9392a0bfb3d5ada64f60152fba6afcdffb5 (diff)
Fix the order ID reference
Diffstat (limited to 'midtrans.c')
-rw-r--r--midtrans.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/midtrans.c b/midtrans.c
index 45fcd4d..7caae6e 100644
--- a/midtrans.c
+++ b/midtrans.c
@@ -324,8 +324,8 @@ enum midtrans_transaction_status midtrans_notification_transaction(char *post,
size_t signature_fields_len = order_id_len + strlen(status_code)
+ strlen(gross_amount) + strlen(server_key);
char signature_fields[signature_fields_len + 1];
- sprintf(signature_fields, "%s%s%s%s", transaction->order_id,
- status_code, gross_amount, server_key);
+ sprintf(signature_fields, "%s%s%s%s", order_id, status_code,
+ gross_amount, server_key);
BIO *bio = BIO_new(BIO_s_null());
BIO *mdtmp = BIO_new(BIO_f_md());