Plugin Directory

Changeset 3219982


Ignore:
Timestamp:
01/10/2025 04:31:34 AM (11 months ago)
Author:
Hiroaki Miyashita
Message:

Version 0.1.7

Location:
wc-gmopg-gateway/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wc-gmopg-gateway/trunk/readme.txt

    r3219336 r3219982  
    55Requires at least: 4.4
    66Tested up to: 6.7.1
    7 Stable tag: 0.1.6
     7Stable tag: 0.1.7
    88License: GPLv2 or later
    99
     
    4444== Changelog ==
    4545
     46= 0.1.7 =
     47* Bugfix: recording the transaction ID.
     48
    4649= 0.1.6 =
    4750* Bugfix: webhook.
  • wc-gmopg-gateway/trunk/wc-gmopg-gateway.php

    r3219336 r3219982  
    66 * Author: Hiroaki Miyashita
    77 * Author URI: https://www.wpmarket.jp/
    8  * Version: 0.1.6
     8 * Version: 0.1.7
    99 * Requires at least: 4.4
    1010 * Tested up to: 6.7.1
    1111 * WC requires at least: 3.0
    12  * WC tested up to: 9.5.1
     12 * WC tested up to: 9.5.2
    1313 * Text Domain: wc-gmopg-gateway
    1414 * Domain Path: /
     
    312312                        switch ( $order->get_payment_method() ) :
    313313                            case 'gmopg_credit' :
    314                                 add_post_meta( $order->id, '_transaction_id', $_POST['TranID'] );
     314                                $order->set_transaction_id( $_POST['TranID'] );
    315315                                if ( empty($this->status) ) $this->status = 'processing';
    316316                                if ( isset($_POST['Amount']) && $_POST['Amount'] == $order->get_total() ) :
     
    323323                                if ( empty($this->status) ) $this->status = 'processing';
    324324                                if ( $_POST['Status'] == 'REQSUCCESS' ) :
    325                                     add_post_meta( $order->id, '_transaction_id', $_POST['TranID'] );
     325                                    $order->set_transaction_id( $_POST['TranID'] );
    326326                                    $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'] ) );               
    327327                                elseif ( $_POST['Status'] == 'PAYSUCCESS' ) :
     
    336336                                if ( empty($this->status) ) $this->status = 'processing';
    337337                                if ( $_POST['Status'] == 'REQSUCCESS' ) :
    338                                     add_post_meta( $order->id, '_transaction_id', $_POST['TranID'] );
     338                                    $order->set_transaction_id( $_POST['TranID'] );
    339339                                    $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'] ) );             
    340340                                elseif ( $_POST['Status'] == 'PAYSUCCESS' ) :
Note: See TracChangeset for help on using the changeset viewer.