Plugin Directory

Changeset 1986710


Ignore:
Timestamp:
12/06/2018 11:26:50 AM (7 years ago)
Author:
kunlexzy
Message:

Version 1.3.0 release

Location:
woo-voguepay/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • woo-voguepay/trunk/README.txt

    r1937737 r1986710  
    6060
    6161== Changelog ==
     62= 1.3.0 =
     63* Payment memo descprition option
     64* Minor performance tweaks
    6265= 1.2.0 =
    6366* Added checkout routing alternative
  • woo-voguepay/trunk/includes/class.voguepay.php

    r1937729 r1986710  
    3333        $this->developer_code           = $this->get_option( 'developer_code' );
    3434        $this->inline_text              = $this->get_option( 'inline_text' );
     35        $this->memo                     = $this->get_option( 'memo' );
    3536        $this->enabled                  = $this->get_option( 'enabled' )=='yes'?true:false;
    3637        $this->demo                     = $this->get_option( 'demo' ) === 'yes' ? true : false;
     
    131132            ),
    132133
     134            'memo' => array(
     135                'title'       => 'Memo Description',
     136                'type'        => 'select',
     137                'description' => 'Eg. Payment for Order ID:: 001 - '.get_bloginfo('name'),
     138                'desc_tip'      => true,
     139                'default'     => 'website',
     140                'options'     => array(
     141                    'website'       => 'Show website name',
     142                    'product'   => 'Show product name'
     143                )
     144            ),
     145
    133146            'customer_name'  => array(
    134147                'title'       => 'Customer Name',
    135                 'label'       => 'Send Customer Name',
     148                'label'       => 'Send Customer Name to VoguePay',
    136149                'type'        => 'checkbox',
    137150                'description' => 'If checked, the customer full name will be sent during transaction',
     
    141154            'customer_email'  => array(
    142155                'title'       => 'Customer Email',
    143                 'label'       => 'Send Customer Email',
     156                'label'       => 'Send Customer Email to VoguePay',
    144157                'type'        => 'checkbox',
    145158                'description' => 'If checked, the customer email address will be sent during transaction',
     
    149162            'customer_phone'  => array(
    150163                'title'       => 'Customer Phone',
    151                 'label'       => 'Send Customer Phone',
     164                'label'       => 'Send Customer Phone to VoguePay',
    152165                'type'        => 'checkbox',
    153166                'description' => 'If checked, the customer phone will be sent during transaction',
     
    157170            'billing_address'  => array(
    158171                'title'       => 'Billing Address',
    159                 'label'       => 'Send Order Billing Address',
     172                'label'       => 'Send Order Billing Address to VoguePay',
    160173                'type'        => 'checkbox',
    161174                'description' => 'If checked, the order billing address will be sent during transaction',
     
    254267
    255268        $args = array(
    256             'timeout'   => 60
     269            'timeout'   => 100
    257270        );
    258271
     
    334347    public function get_voguepay_args( $order ) {
    335348
     349        $memo=' - '.get_bloginfo('name');
     350
     351        if($this->memo=='product')
     352        {
     353            $memo='';
     354            $items=$order->get_items();
     355            foreach ( $items as $item ) {
     356                $memo.=' - '.($item['name']);
     357            }
     358        }
     359
     360        //Restrict it to 100 characters
     361        $memo = strlen($memo) > 150 ? substr($memo,0,150)."..." : $memo;
     362
    336363        $order_id = method_exists( $order, 'get_id' ) ? $order->get_id() : $order->id;
    337364        $voguepay_args = array(
    338365            'v_merchant_id'         => ($this->demo)?'demo':$this->merchant_id,
    339366            'cur'                   => get_woocommerce_currency(),
    340             'memo'                  => "Payment for Order ID:: $order_id on ". get_bloginfo('name'),
     367            'memo'                  => "Payment for Order ID:: $order_id".$memo,
    341368            'total'                 => $order->get_total(),
    342369            'merchant_ref'          => $order_id.'-'.get_woocommerce_currency().'-'.$order->get_total(),
     
    349376        /*
    350377         * if you are a developer, you can generate your developer code and replace mine below or ignore to give me credits :)
    351          * Remember to also give this plugin a good review
     378         * Remember to also give this plugin a good review also watch out for updates
    352379         */
    353380        $voguepay_args['developer_code']='5b3d29f078165';
  • woo-voguepay/trunk/woo-voguepay.php

    r1937729 r1986710  
    1010 * Plugin URI:  https://wordpress.org/plugins/woo-voguepay/
    1111 * Description: VoguePay plugin for WooCommerce.
    12  * Version:     1.2.0
     12 * Version:     1.3.0
    1313 * Author:      kunlexzy
    1414 * Author URI:  https://voguepay.com/3445-0056682
     
    2222
    2323define( 'VPWOO_VOGUEPAY_BASE', __FILE__ );
    24 define( 'VPWOO_VOGUEPAY_VERSION', '1.2.0' );
     24define( 'VPWOO_VOGUEPAY_VERSION', '1.3.0' );
    2525
    2626function vpwoo_voguepay_init()
Note: See TracChangeset for help on using the changeset viewer.