text formatting

This commit is contained in:
cryptochangements34 2018-02-11 17:30:32 -06:00 committed by GitHub
parent acc6b0d91c
commit 39361a247b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -578,10 +578,10 @@ class Monero_Gateway extends WC_Payment_Gateway
$order = wc_get_order($order_id);
if($this->is_virtual_in_cart($order_id) == true){
$order->update_status('completed', __('Payment has been received' . $payment_id, 'monero_gateway'));
$order->update_status('completed', __('Payment has been received. Payment ID: ' . $payment_id, 'monero_gateway'));
}
else{
$order->update_status('processing', __('Payment has been received' . $payment_id, 'monero_gateway')); // Show payment id used for order
$order->update_status('processing', __('Payment has been received. Payment ID: ' . $payment_id, 'monero_gateway')); // Show payment id used for order
}
global $wpdb;
$wpdb->query("DROP TABLE $payment_id"); // Drop the table from database after payment has been confirmed as it is no longer needed