Changeset 1728045
- Timestamp:
- 09/11/2017 12:43:56 PM (9 years ago)
- Location:
- local-listing-pro
- Files:
-
- 4 edited
-
tags/1.0.4/inc/class_local_listing_pro.php (modified) (2 diffs)
-
tags/1.0.4/inc/class_local_listing_pro_apifuns.php (modified) (16 diffs)
-
trunk/inc/class_local_listing_pro.php (modified) (2 diffs)
-
trunk/inc/class_local_listing_pro_apifuns.php (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
-
local-listing-pro/tags/1.0.4/inc/class_local_listing_pro.php
r1715326 r1728045 9 9 { 10 10 11 11 12 12 13 13 … … 466 466 $customer_id = isset($business_info['_llsp_stripe_customer_id']) ? $business_info['_llsp_stripe_customer_id'][0] : ''; 467 467 $card_info['client_id'] = $business_client_id; 468 $card_info['token'] = local_listing_pro_apifuns::get_local_listing_pro_apifuns()->llsp_create_token();468 469 469 $subscription_id = ''; 470 470 $billing_start_date = ''; -
local-listing-pro/tags/1.0.4/inc/class_local_listing_pro_apifuns.php
r1725599 r1728045 63 63 $search_name = sanitize_text_field($_POST['search_name']); 64 64 $search_zipcode = sanitize_text_field($_POST['search_zipcode']); 65 $token1 = self::$token;65 66 66 $params = array( 67 67 'search' => $search_name, 68 68 'zipcode' => $search_zipcode, 69 'token'=> $token169 70 70 ); 71 71 … … 247 247 $client_id = ''; 248 248 $order_id = ''; 249 $token1 = self::$token;249 250 250 $params = array( 251 "token" => $token1 ,251 252 252 "fields" => $data 253 253 ); … … 298 298 $params = array( 299 299 "client_id" => $client_id, 300 "token" => $token1300 301 301 ); 302 302 … … 396 396 397 397 398 $token1 = self::$token;398 399 399 400 400 $params = array( 401 401 'client_id' => $exist_client_id, 402 402 "fields" => $data_temp, 403 $token => $token1403 404 404 ); 405 405 … … 535 535 $data_new['hours'] = json_encode($data_hour); 536 536 $data_meta_hours = json_encode($data); 537 $token1 = self::$token;538 537 $params = array( 539 538 'client_id' => $business_client_id, 540 539 "fields" => $data_new, 541 $token => $token1540 542 541 ); 543 542 … … 564 563 $logo_image_name = substr($logo_image_url[0], strrpos($logo_image_url[0], '/') + 1); 565 564 $logo_thumbnail_name = substr($logo_image_url[0], strrpos($logo_thumbnail_url[0], '/') + 1); 566 $token1 = self::$token;565 567 566 $params = array( 568 567 "client_id" => $business_client_id, 569 568 "image" => sanitize_text_field($logo_image_name), 570 'token' => $token1569 571 570 ); 572 571 … … 604 603 605 604 606 $token1 = self::$token;605 607 606 $image_type = sanitize_text_field($_POST['image_type']); 608 607 … … 617 616 "client_id" => $business_client_id, 618 617 "image" => sanitize_text_field($logo_image_name), 619 'token' => $token1618 620 619 ); 621 620 … … 678 677 679 678 $data1['logo'] = $imdata; 680 $token1 = self::$token; 679 681 680 $params1 = array( 682 681 "images" => $data1, 683 682 "client_id" => $business_client_id, 684 "token"=> $token1683 685 684 ); 686 685 … … 710 709 settype($img_number, "integer"); 711 710 $img_index = $img_number; 712 $token1 = self::$token;711 713 712 $params1 = array( 714 713 "images" => $data1, 715 714 "client_id" => $business_client_id, 716 "token" => $token1715 717 716 ); 718 717 … … 753 752 $message = sanitize_text_field( $_POST['message']); 754 753 $client_id = sanitize_text_field( $_POST['business_client_id']); 755 $token1 = self::$token;754 756 755 $params = array( 757 756 'subject' => $subject, 758 757 'message' => $message, 759 758 'client_id' => $client_id, 760 'token' => $token1759 761 760 ); 762 761 … … 787 786 { 788 787 789 $token1 = self::$token;788 790 789 $cont = array( 791 790 "params" => array( 792 791 "client_id" => $client_id, 793 792 ), 794 'token' => $token1793 795 794 ); 796 795 $result = $this->llsp_process_request( 'get_citations', $cont ); … … 804 803 { 805 804 806 $token1 = self::$token;805 807 806 808 $params = array("order_id" => $order_id , "token" => $token1);807 $params = array("order_id" => $order_id ); 809 808 810 809 … … 821 820 { 822 821 823 $token1 = self::$token;822 824 823 $order_data = $this->get_order_detail($order_id); 825 824 … … 940 939 $order_id = ''; 941 940 $saved_order = ''; 942 $token1 = self::$token;941 943 942 if ($business_status != 'paused') { 944 943 $params = array( 945 944 "client_id" => $client_id, 946 'token' => $token1945 947 946 ); 948 947 $saved_order = $extra_data['saved_order']; … … 1191 1190 { 1192 1191 1193 $token1 = self::$token;1192 1194 1193 1195 1194 $deactivated_status = $sub_data['deactive_status']; -
local-listing-pro/trunk/inc/class_local_listing_pro.php
r1663941 r1728045 294 294 295 295 } 296 297 296 public static function activate_llsp() 298 297 { … … 467 466 $customer_id = isset($business_info['_llsp_stripe_customer_id']) ? $business_info['_llsp_stripe_customer_id'][0] : ''; 468 467 $card_info['client_id'] = $business_client_id; 469 $card_info['token'] = local_listing_pro_apifuns::get_local_listing_pro_apifuns()->llsp_create_token();468 470 469 $subscription_id = ''; 471 470 $billing_start_date = ''; -
local-listing-pro/trunk/inc/class_local_listing_pro_apifuns.php
r1725606 r1728045 63 63 $search_name = sanitize_text_field($_POST['search_name']); 64 64 $search_zipcode = sanitize_text_field($_POST['search_zipcode']); 65 $token1 = self::$token;65 66 66 $params = array( 67 67 'search' => $search_name, 68 68 'zipcode' => $search_zipcode, 69 'token'=> $token169 70 70 ); 71 71 … … 247 247 $client_id = ''; 248 248 $order_id = ''; 249 $token1 = self::$token;249 250 250 $params = array( 251 "token" => $token1 ,251 252 252 "fields" => $data 253 253 ); … … 298 298 $params = array( 299 299 "client_id" => $client_id, 300 "token" => $token1300 301 301 ); 302 302 … … 396 396 397 397 398 $token1 = self::$token;398 399 399 400 400 $params = array( 401 401 'client_id' => $exist_client_id, 402 402 "fields" => $data_temp, 403 $token => $token1403 404 404 ); 405 405 … … 535 535 $data_new['hours'] = json_encode($data_hour); 536 536 $data_meta_hours = json_encode($data); 537 $token1 = self::$token;538 537 $params = array( 539 538 'client_id' => $business_client_id, 540 539 "fields" => $data_new, 541 $token => $token1540 542 541 ); 543 542 … … 564 563 $logo_image_name = substr($logo_image_url[0], strrpos($logo_image_url[0], '/') + 1); 565 564 $logo_thumbnail_name = substr($logo_image_url[0], strrpos($logo_thumbnail_url[0], '/') + 1); 566 $token1 = self::$token;565 567 566 $params = array( 568 567 "client_id" => $business_client_id, 569 568 "image" => sanitize_text_field($logo_image_name), 570 'token' => $token1569 571 570 ); 572 571 … … 604 603 605 604 606 $token1 = self::$token;605 607 606 $image_type = sanitize_text_field($_POST['image_type']); 608 607 … … 617 616 "client_id" => $business_client_id, 618 617 "image" => sanitize_text_field($logo_image_name), 619 'token' => $token1618 620 619 ); 621 620 … … 678 677 679 678 $data1['logo'] = $imdata; 680 $token1 = self::$token; 679 681 680 $params1 = array( 682 681 "images" => $data1, 683 682 "client_id" => $business_client_id, 684 "token"=> $token1683 685 684 ); 686 685 … … 710 709 settype($img_number, "integer"); 711 710 $img_index = $img_number; 712 $token1 = self::$token;711 713 712 $params1 = array( 714 713 "images" => $data1, 715 714 "client_id" => $business_client_id, 716 "token" => $token1715 717 716 ); 718 717 … … 753 752 $message = sanitize_text_field( $_POST['message']); 754 753 $client_id = sanitize_text_field( $_POST['business_client_id']); 755 $token1 = self::$token;754 756 755 $params = array( 757 756 'subject' => $subject, 758 757 'message' => $message, 759 758 'client_id' => $client_id, 760 'token' => $token1759 761 760 ); 762 761 … … 787 786 { 788 787 789 $token1 = self::$token;788 790 789 $cont = array( 791 790 "params" => array( 792 791 "client_id" => $client_id, 793 792 ), 794 'token' => $token1793 795 794 ); 796 795 $result = $this->llsp_process_request( 'get_citations', $cont ); … … 804 803 { 805 804 806 $token1 = self::$token;805 807 806 808 $params = array("order_id" => $order_id , "token" => $token1);807 $params = array("order_id" => $order_id ); 809 808 810 809 … … 821 820 { 822 821 823 $token1 = self::$token;822 824 823 $order_data = $this->get_order_detail($order_id); 825 824 … … 940 939 $order_id = ''; 941 940 $saved_order = ''; 942 $token1 = self::$token;941 943 942 if ($business_status != 'paused') { 944 943 $params = array( 945 944 "client_id" => $client_id, 946 'token' => $token1945 947 946 ); 948 947 $saved_order = $extra_data['saved_order']; … … 1191 1190 { 1192 1191 1193 $token1 = self::$token;1192 1194 1193 1195 1194 $deactivated_status = $sub_data['deactive_status'];
Note: See TracChangeset
for help on using the changeset viewer.