Plugin Directory

Changeset 1857781


Ignore:
Timestamp:
04/13/2018 09:31:50 AM (8 years ago)
Author:
gosomi
Message:

Gateway 두번 호출 버그 수정

Location:
woo-bootpay/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woo-bootpay/trunk/bootpay-woocommerce.php

    r1857728 r1857781  
    44 * Plugin URI: https://www.bootpay.co.kr
    55 * Description: 우커머스에 PG를 손쉽게 붙일 수 연동 플러그인 ( 이니시스 / 다날 / KCP / LGU+ 모두 쉽게 붙이는 Woo-bootpay )
    6  * Version: 1.1.8
     6 * Version: 1.1.9
    77 * Author: Gosomi
    88 * Author URI: https://blog.areum.io
     
    3737
    3838function init_bootpay_plugin() {
    39     if( ! class_exists( 'WC_Payment_Gateway' ) ) {
     39    if( ! class_exists( 'WC_Payment_Gateway' ) || class_exists( 'WC_Gateway_Bootpay' ) ) {
    4040        return;
    4141    }
     
    6262            $this->title       = $this->get_option( 'title' );
    6363            $this->description = $this->get_option( 'description' );
    64 
    6564            $this->load_actions();
    6665        }
     
    152151            add_action( 'woocommerce_api_' . strtolower( self::PAYMENT_SUBMIT ), [$this, 'payment_validation'] );
    153152            add_action( 'woocommerce_api_' . strtolower( self::VBANK_NOTIFICATION ), [$this, 'vbank_notification'] );
    154             add_action( 'woocommerce_order_details_after_order_table', [$this, 'bootpay_order_table'] );
     153            add_action( 'woocommerce_order_details_after_order_table', [$this, 'bootpay_order_table'], 10, 1 );
    155154            add_action( "woocommerce_update_options_payment_gateways_{$this->id}", [$this, 'process_admin_options'] );
    156155            add_action( "wp_ajax_bootpay_payment_response", [$this, 'pre_bootpay_payment_response'] );
     
    175174
    176175        public function bootpay_order_table( $order ) {
    177             $this->renderFile( 'order_detail.php', [
     176            return $this->renderFile( 'order_detail.php', [
    178177                'pg_name'     => $order->get_meta( 'bootpay_pg_name' ),
    179178                'method_name' => $order->get_meta( 'bootpay_method_name' ),
     
    585584    }
    586585
    587     new WC_Gateway_Bootpay();
     586//  new WC_Gateway_Bootpay();
    588587}
  • woo-bootpay/trunk/readme.txt

    r1857728 r1857781  
    44Tags: woocommerce, 부트페이, payment, 이니시스, KCP, 다날, inicis, danal, bootpay
    55Requires at least: 3.6
    6 Tested up to: 4.9.1
    7 Stable tag: 1.1.8
     6Tested up to: 4.9.5
     7Stable tag: 1.1.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1212
    1313== Description ==
     14버전 1.1.9
     15Gateway 두번 호출하는 버그 수정
     16
    1417버전 1.1.8
    1518상품명 노출 안되는 버그 수정
Note: See TracChangeset for help on using the changeset viewer.