Changeset 3301927
- Timestamp:
- 05/28/2025 04:49:14 AM (7 months ago)
- Location:
- payu-india
- Files:
-
- 6 edited
-
tags/3.8.5/includes/class-wc-gateway-payu.php (modified) (1 diff)
-
tags/3.8.5/includes/payu-cart-express-checkout.php (modified) (1 diff)
-
tags/3.8.5/includes/payu-payment-gateway-api.php (modified) (1 diff)
-
trunk/includes/class-wc-gateway-payu.php (modified) (1 diff)
-
trunk/includes/payu-cart-express-checkout.php (modified) (1 diff)
-
trunk/includes/payu-payment-gateway-api.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
payu-india/tags/3.8.5/includes/class-wc-gateway-payu.php
r3278789 r3301927 359 359 $phone = substr($phone, -10); 360 360 } 361 // $get_state_list = get_state_list(); 362 // $state = $get_state_list[sanitize_text_field($order->billing_state)]; 361 363 $get_state_list = get_state_list(); 362 $state = $get_state_list[sanitize_text_field($order->billing_state)]; 364 $billing_state_key = sanitize_text_field($order->billing_state); 365 $state = isset($get_state_list[$billing_state_key]) ? $get_state_list[$billing_state_key] : ''; 363 366 $city = $order->billing_city ? sanitize_email($order->billing_city) : ''; 364 367 // $city = sanitize_text_field($order->billing_city); -
payu-india/tags/3.8.5/includes/payu-cart-express-checkout.php
r3278789 r3301927 307 307 public function add_custom_order_total_row($total_rows, $order) 308 308 { 309 if ($total_rows['payment_method']['value'] == 'PayUBiz') { 309 // if ($total_rows['payment_method']['value'] == 'PayUBiz') { 310 if (isset($total_rows['payment_method']['value']) && $total_rows['payment_method']['value'] === 'PayUBiz') { 310 311 $payment_mode['payment_mode'] = array( 311 312 'label' => __('Payment Mode', 'your-text-domain'), -
payu-india/tags/3.8.5/includes/payu-payment-gateway-api.php
r3278789 r3301927 296 296 ); 297 297 298 // $get_state_list = get_state_list(); 299 // $state = $get_state_list[$address[$address_type . '_state']]; 298 300 $get_state_list = get_state_list(); 299 $state = $get_state_list[$address[$address_type . '_state']]; 301 $state_key = $address[$address_type . '_state'] ?? null; 302 $state = $state_key && isset($get_state_list[$state_key]) ? $get_state_list[$state_key] : ''; 300 303 301 304 // Request body -
payu-india/trunk/includes/class-wc-gateway-payu.php
r3278794 r3301927 359 359 $phone = substr($phone, -10); 360 360 } 361 // $get_state_list = get_state_list(); 362 // $state = $get_state_list[sanitize_text_field($order->billing_state)]; 361 363 $get_state_list = get_state_list(); 362 $state = $get_state_list[sanitize_text_field($order->billing_state)]; 364 $billing_state_key = sanitize_text_field($order->billing_state); 365 $state = isset($get_state_list[$billing_state_key]) ? $get_state_list[$billing_state_key] : ''; 363 366 $city = $order->billing_city ? sanitize_email($order->billing_city) : ''; 364 367 // $city = sanitize_text_field($order->billing_city); -
payu-india/trunk/includes/payu-cart-express-checkout.php
r3278794 r3301927 307 307 public function add_custom_order_total_row($total_rows, $order) 308 308 { 309 if ($total_rows['payment_method']['value'] == 'PayUBiz') { 309 // if ($total_rows['payment_method']['value'] == 'PayUBiz') { 310 if (isset($total_rows['payment_method']['value']) && $total_rows['payment_method']['value'] === 'PayUBiz') { 310 311 $payment_mode['payment_mode'] = array( 311 312 'label' => __('Payment Mode', 'your-text-domain'), -
payu-india/trunk/includes/payu-payment-gateway-api.php
r3278794 r3301927 296 296 ); 297 297 298 // $get_state_list = get_state_list(); 299 // $state = $get_state_list[$address[$address_type . '_state']]; 298 300 $get_state_list = get_state_list(); 299 $state = $get_state_list[$address[$address_type . '_state']]; 301 $state_key = $address[$address_type . '_state'] ?? null; 302 $state = $state_key && isset($get_state_list[$state_key]) ? $get_state_list[$state_key] : ''; 300 303 301 304 // Request body
Note: See TracChangeset
for help on using the changeset viewer.