Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions class/class.midtrans-gateway-notif-handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ public function handleMidtransNotificationRequest() {
}
// Verify Midtrans notification
$midtrans_notification = WC_Midtrans_API::getStatusFromMidtransNotif( $plugin_id );
// BI-SNAP & DANA payment methods return transaction_id in order_id field, restore the WooCommerce order_id back from the raw notification body
$midtrans_notification->getResponse()->order_id = $raw_notification['order_id'];
// If notification verified, handle it
if (in_array($midtrans_notification->status_code, array(200, 201, 202, 407))) {
// @TAG: order-id-suffix-handling
Expand Down