You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -345,12 +333,11 @@ function (WC_Order_Item $item) {
345
333
'result' => 'success',
346
334
'redirect' => $data['authorization_url']
347
335
];
348
-
//$order->update_status(apply_filters('woocommerce_notchpay_process_payment_order_status', $order->has_downloadable_item() ? 'on-hold' : 'processing', $order), __('Payment to be made upon delivery.', 'woocommerce'));
349
336
} else {
350
337
wc_add_notice(__('Unable to process payment try again', 'woo-notchpay'), 'error');
351
338
}
352
339
} catch (Exception$th) {
353
-
// $order->add_order_note("Payment init failed with message: " . $th->getMessage());
340
+
$order->add_order_note("Payment init failed with message: " . $th->getMessage());
354
341
355
342
if (isset($response)) {
356
343
woo_notchpay_log_data('Request <-----');
@@ -380,7 +367,7 @@ public function verify_transaction($reference)
0 commit comments