Changeset 3219982
- Timestamp:
- 01/10/2025 04:31:34 AM (11 months ago)
- Location:
- wc-gmopg-gateway/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wc-gmopg-gateway.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-gmopg-gateway/trunk/readme.txt
r3219336 r3219982 5 5 Requires at least: 4.4 6 6 Tested up to: 6.7.1 7 Stable tag: 0.1. 67 Stable tag: 0.1.7 8 8 License: GPLv2 or later 9 9 … … 44 44 == Changelog == 45 45 46 = 0.1.7 = 47 * Bugfix: recording the transaction ID. 48 46 49 = 0.1.6 = 47 50 * Bugfix: webhook. -
wc-gmopg-gateway/trunk/wc-gmopg-gateway.php
r3219336 r3219982 6 6 * Author: Hiroaki Miyashita 7 7 * Author URI: https://www.wpmarket.jp/ 8 * Version: 0.1. 68 * Version: 0.1.7 9 9 * Requires at least: 4.4 10 10 * Tested up to: 6.7.1 11 11 * WC requires at least: 3.0 12 * WC tested up to: 9.5. 112 * WC tested up to: 9.5.2 13 13 * Text Domain: wc-gmopg-gateway 14 14 * Domain Path: / … … 312 312 switch ( $order->get_payment_method() ) : 313 313 case 'gmopg_credit' : 314 add_post_meta( $order->id, '_transaction_id',$_POST['TranID'] );314 $order->set_transaction_id( $_POST['TranID'] ); 315 315 if ( empty($this->status) ) $this->status = 'processing'; 316 316 if ( isset($_POST['Amount']) && $_POST['Amount'] == $order->get_total() ) : … … 323 323 if ( empty($this->status) ) $this->status = 'processing'; 324 324 if ( $_POST['Status'] == 'REQSUCCESS' ) : 325 add_post_meta( $order->id, '_transaction_id',$_POST['TranID'] );325 $order->set_transaction_id( $_POST['TranID'] ); 326 326 $order->update_status( 'on-hold', sprintf( __( 'GMOPG settlement displayed (Transaction No: %s, Detail: %s).', 'wc-gmopg-gateway' ), $_POST['TranID'], $_POST['CvsCode']." ".$_POST['CvsConfNo']." ".$_POST['CvsReceiptNo'] ) ); 327 327 elseif ( $_POST['Status'] == 'PAYSUCCESS' ) : … … 336 336 if ( empty($this->status) ) $this->status = 'processing'; 337 337 if ( $_POST['Status'] == 'REQSUCCESS' ) : 338 add_post_meta( $order->id, '_transaction_id',$_POST['TranID'] );338 $order->set_transaction_id( $_POST['TranID'] ); 339 339 $order->update_status( 'on-hold', sprintf( __( 'GMOPG settlement displayed (Transaction No: %s, Detail: %s).', 'wc-gmopg-gateway' ), $_POST['TranID'], $_POST['CustID']." ".$_POST['BkCode']." ".$_POST['ConfNo'] ) ); 340 340 elseif ( $_POST['Status'] == 'PAYSUCCESS' ) :
Note: See TracChangeset
for help on using the changeset viewer.