Changeset 1986710
- Timestamp:
- 12/06/2018 11:26:50 AM (7 years ago)
- Location:
- woo-voguepay/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (1 diff)
-
includes/class.voguepay.php (modified) (8 diffs)
-
woo-voguepay.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-voguepay/trunk/README.txt
r1937737 r1986710 60 60 61 61 == Changelog == 62 = 1.3.0 = 63 * Payment memo descprition option 64 * Minor performance tweaks 62 65 = 1.2.0 = 63 66 * Added checkout routing alternative -
woo-voguepay/trunk/includes/class.voguepay.php
r1937729 r1986710 33 33 $this->developer_code = $this->get_option( 'developer_code' ); 34 34 $this->inline_text = $this->get_option( 'inline_text' ); 35 $this->memo = $this->get_option( 'memo' ); 35 36 $this->enabled = $this->get_option( 'enabled' )=='yes'?true:false; 36 37 $this->demo = $this->get_option( 'demo' ) === 'yes' ? true : false; … … 131 132 ), 132 133 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 133 146 'customer_name' => array( 134 147 'title' => 'Customer Name', 135 'label' => 'Send Customer Name ',148 'label' => 'Send Customer Name to VoguePay', 136 149 'type' => 'checkbox', 137 150 'description' => 'If checked, the customer full name will be sent during transaction', … … 141 154 'customer_email' => array( 142 155 'title' => 'Customer Email', 143 'label' => 'Send Customer Email ',156 'label' => 'Send Customer Email to VoguePay', 144 157 'type' => 'checkbox', 145 158 'description' => 'If checked, the customer email address will be sent during transaction', … … 149 162 'customer_phone' => array( 150 163 'title' => 'Customer Phone', 151 'label' => 'Send Customer Phone ',164 'label' => 'Send Customer Phone to VoguePay', 152 165 'type' => 'checkbox', 153 166 'description' => 'If checked, the customer phone will be sent during transaction', … … 157 170 'billing_address' => array( 158 171 'title' => 'Billing Address', 159 'label' => 'Send Order Billing Address ',172 'label' => 'Send Order Billing Address to VoguePay', 160 173 'type' => 'checkbox', 161 174 'description' => 'If checked, the order billing address will be sent during transaction', … … 254 267 255 268 $args = array( 256 'timeout' => 60269 'timeout' => 100 257 270 ); 258 271 … … 334 347 public function get_voguepay_args( $order ) { 335 348 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 336 363 $order_id = method_exists( $order, 'get_id' ) ? $order->get_id() : $order->id; 337 364 $voguepay_args = array( 338 365 'v_merchant_id' => ($this->demo)?'demo':$this->merchant_id, 339 366 '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, 341 368 'total' => $order->get_total(), 342 369 'merchant_ref' => $order_id.'-'.get_woocommerce_currency().'-'.$order->get_total(), … … 349 376 /* 350 377 * 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 352 379 */ 353 380 $voguepay_args['developer_code']='5b3d29f078165'; -
woo-voguepay/trunk/woo-voguepay.php
r1937729 r1986710 10 10 * Plugin URI: https://wordpress.org/plugins/woo-voguepay/ 11 11 * Description: VoguePay plugin for WooCommerce. 12 * Version: 1. 2.012 * Version: 1.3.0 13 13 * Author: kunlexzy 14 14 * Author URI: https://voguepay.com/3445-0056682 … … 22 22 23 23 define( 'VPWOO_VOGUEPAY_BASE', __FILE__ ); 24 define( 'VPWOO_VOGUEPAY_VERSION', '1. 2.0' );24 define( 'VPWOO_VOGUEPAY_VERSION', '1.3.0' ); 25 25 26 26 function vpwoo_voguepay_init()
Note: See TracChangeset
for help on using the changeset viewer.