Plugin Directory

Changeset 2739043


Ignore:
Timestamp:
06/08/2022 06:57:36 AM (4 years ago)
Author:
vandarpay
Message:

update version to 3.0.0

Location:
vandar-woocommerce-gateway
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vandar-woocommerce-gateway/.idea/workspace.xml

    r2690233 r2739043  
    2828    <property name="WebServerToolWindowPanel.toolwindow.show.permissions" value="false" />
    2929    <property name="WebServerToolWindowPanel.toolwindow.show.size" value="false" />
    30     <property name="last_opened_file_path" value="$PROJECT_DIR$/../vandar-gravityform" />
     30    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
    3131    <property name="nodejs_package_manager_path" value="npm" />
    3232    <property name="vue.rearranger.settings.migration" value="true" />
     
    3434  <component name="RecentsManager">
    3535    <key name="CopyFile.RECENT_KEYS">
     36      <recent name="$PROJECT_DIR$/tags/3.0.0" />
    3637      <recent name="$PROJECT_DIR$/tags/2.0.0" />
    3738      <recent name="$PROJECT_DIR$/tags/1.09" />
     
    7273      <workItem from="1645884415894" duration="1953000" />
    7374      <workItem from="1646495441101" duration="1404000" />
     75      <workItem from="1652170025492" duration="3401000" />
     76      <workItem from="1652176578927" duration="7000" />
     77      <workItem from="1652176601931" duration="155000" />
    7478    </task>
    7579    <task id="LOCAL-00001" summary="check WooCommerce plugin and get 120 character of description">
  • vandar-woocommerce-gateway/tags/3.0.0/class-wc-gateway-vandario.php

    r2721116 r2739043  
    197197            public function send($api, $amount, $redirect, $mobile = null, $factorNumber = null, $description = null)
    198198            {
    199                 return $this->curl_post('https://ipg.vandar.io/api/v3/send', [
     199                $tempDescription = explode(' ', $description) ;
     200                $tempDescription = array_slice($tempDescription,0,11);
     201                $tempDescription = implode(' ',$tempDescription);
     202
     203                return  $this->curl_post('https://ipg.vandar.io/api/v3/send', [
    200204                     'api_key'          => $api,
    201205                     'amount'       => $amount * 10,
     
    203207                     'mobile_number'       => $mobile,
    204208                     'factorNumber' => $factorNumber,
    205                      'description'  => substr($description,0,120),
     209                     'description'  => $tempDescription,
    206210                ]);
    207211            }
  • vandar-woocommerce-gateway/trunk/class-wc-gateway-vandario.php

    r2721103 r2739043  
    197197            public function send($api, $amount, $redirect, $mobile = null, $factorNumber = null, $description = null)
    198198            {
    199                 return $this->curl_post('https://ipg.vandar.io/api/v3/send', [
     199                $tempDescription = explode(' ', $description) ;
     200                $tempDescription = array_slice($tempDescription,0,11);
     201                $tempDescription = implode(' ',$tempDescription);
     202
     203                return  $this->curl_post('https://ipg.vandar.io/api/v3/send', [
    200204                     'api_key'          => $api,
    201205                     'amount'       => $amount * 10,
     
    203207                     'mobile_number'       => $mobile,
    204208                     'factorNumber' => $factorNumber,
    205                      'description'  => substr($description,0,120),
     209                     'description'  => $tempDescription,
    206210                ]);
    207211            }
Note: See TracChangeset for help on using the changeset viewer.