Changeset 2192824
- Timestamp:
- 11/14/2019 02:02:19 PM (6 years ago)
- Location:
- idpay/trunk
- Files:
-
- 2 edited
-
index.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
idpay/trunk/index.php
r2188392 r2192824 5 5 * Plugin URI: https://idpay.my 6 6 * Description: Enable payment by salary deduction. Currently IDPay service is only available for customer that working as government servants in Malaysia. 7 * Version: 1. 47 * Version: 1.5 8 8 * Author: IDSB Digital Sdn. Bhd. 9 9 * Author URI: https://idsb.my … … 222 222 break; 223 223 case 'ready_for_salary_deduction': 224 $order->add_order_note('Waiting for merchant to approve customer application'); 224 if (get_post_meta($order_id, '_idpay_status', true) != $status_type) { 225 $order->add_order_note('Waiting for merchant to approve customer application'); 226 update_post_meta($order_id, '_idpay_status', $status_type, true); 227 } 225 228 break; 226 229 case 'eligible': 227 $order->add_order_note('Customer is eligible for this transaction. Please provide AG/BPA form to customer and deliver the signed form to IDPay office to process'); 230 if (get_post_meta($order_id, '_idpay_status', true) != $status_type) { 231 $order->add_order_note('Customer is eligible for this transaction. Please provide AG/BPA form to customer and deliver the signed form to IDPay office to process'); 232 update_post_meta($order_id, '_idpay_status', $status_type, true); 233 } 228 234 break; 229 235 case 'not_eligible': … … 238 244 if (!get_post_meta($order_id, '_idpay_transaction', true)) { 239 245 $order->add_order_note('IDPay transaction number is '. $transaction_number); 240 add_post_meta($order_id, '_idpay_transaction', $transaction_number, true); 246 update_post_meta($order_id, '_idpay_transaction', $transaction_number, true); 247 update_post_meta($order_id, '_idpay_status', $status_type, true); 241 248 } 242 249 break; … … 332 339 break; 333 340 case 'ready_for_salary_deduction': 334 $order->add_order_note('Waiting for merchant to approve customer application'); 341 if (get_post_meta($order_id, '_idpay_status', true) != $status_type) { 342 $order->add_order_note('Waiting for merchant to approve customer application'); 343 update_post_meta($order_id, '_idpay_status', $status_type, true); 344 } 335 345 break; 336 346 case 'eligible': 337 $order->add_order_note('Customer is eligible for this transaction. Please provide AG/BPA form to customer and deliver the signed form to IDPay office to process'); 347 if (get_post_meta($order_id, '_idpay_status', true) != $status_type) { 348 $order->add_order_note('Customer is eligible for this transaction. Please provide AG/BPA form to customer and deliver the signed form to IDPay office to process'); 349 update_post_meta($order_id, '_idpay_status', $status_type, true); 350 } 338 351 break; 339 352 case 'not_eligible': … … 349 362 $order->add_order_note('IDPay transaction number is '. $transaction_number); 350 363 add_post_meta($order_id, '_idpay_transaction', $transaction_number, true); 364 update_post_meta($order_id, '_idpay_status', $status_type, true); 351 365 } 352 366 break; -
idpay/trunk/readme.txt
r2188392 r2192824 30 30 == Changelog == 31 31 32 = 1.5 = 33 * store & check status to avoid duplicate order note 34 32 35 = 1.4 = 33 36 * change status to on-hold to avoid WC auto cancel unpaid order
Note: See TracChangeset
for help on using the changeset viewer.