Changeset 2847764
- Timestamp:
- 01/13/2023 07:29:45 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hblpay-payment-gateway-for-woocommerce/trunk/hblpay-paymentgateway-woocommerce.php
r2840865 r2847764 1 2 1 <?php 3 2 /** … … 872 871 873 872 $f_response = callAPI('POST', $api_url, $jsondata,$order_id); 874 873 error_log('::::::::::::::::API RESPONSE:::::::::ORDERID:::::::::'.$order_id.'::::'.print_r($f_response,1)); 875 874 } 876 875 catch (Exception $e) … … 925 924 error_log('::::::::::::::::getRequestObject STARTED::::::::::::::::::ORDERID::::'.$order_id ); 926 925 global $post; 926 927 global $wp_version; 928 $php_version = phpversion(); 929 // $plugin_version = '2.0.1'; 930 // $php_version = $version; 931 // $versions = 927 932 928 933 $shippingPackageName = ''; … … 1236 1241 && $ShipToState == '' && $ShipToCountry == '' && $ShipToPostalCode == '' ) { 1237 1242 1238 // $main_data = array (1239 // 'Data1' => $USER_ID,1240 // 'Data2' => encryptData($PASSWORD,$enc_key),1241 // 'Data3' => "Aeskey",1242 // 'Data4' => "$custom_data"1243 // );1244 1245 1243 $custom_data = array (//all fields will be plain text 1246 1244 'USER_ID' => $USER_ID, … … 1259 1257 'SUBTOTAL' => encryptData($SUBTOTAL,$enc_key) 1260 1258 ), 1259 1260 // Plugin Related versions 1261 'EXTERNAL_DETAIL' => array ( 1262 'MERCHANT_PLATFORM' => encryptData('Wordpress',$enc_key), 1263 // 'PLUGIN_VERSION' => encryptData($versions,$enc_key), 1264 'PLUGIN_VERSION' => encryptData('2.0.1|'.$php_version,$enc_key), 1265 'BUILD_VERSION' => encryptData($wp_version,$enc_key), 1266 'RELEASE_DATE' => encryptData('1-11-2022',$enc_key) 1267 ), 1268 1261 1269 'ADDITIONAL_DATA' => array ( 1262 1270 'BILL_TO_FORENAME' => encryptData($bill_to_forename,$enc_key), … … 1271 1279 1272 1280 //'SHIP_TO_PHONE' => encryptData($ShipToPhone,$enc_key), 1273 1274 1281 'CURRENCY' => encryptData($currency_code,$enc_key), 1275 1282 'REFERENCE_NUMBER' => encryptData($order_id,$enc_key), … … 1309 1316 'SUBTOTAL' => encryptData($SUBTOTAL,$enc_key) 1310 1317 ), 1318 1319 // Plugin Related versions 1320 'EXTERNAL_DETAIL' => array ( 1321 'MERCHANT_PLATFORM' => encryptData('Wordpress',$enc_key), 1322 // 'PLUGIN_VERSION' => encryptData($versions,$enc_key), 1323 'PLUGIN_VERSION' => encryptData('2.0.1|'.$php_version,$enc_key), 1324 'BUILD_VERSION' => encryptData($wp_version,$enc_key), 1325 'RELEASE_DATE' => encryptData('1-11-2022',$enc_key) 1326 1327 ), 1328 1311 1329 'ADDITIONAL_DATA' => array ( 1312 1330 'BILL_TO_FORENAME' => encryptData($bill_to_forename,$enc_key), … … 1518 1536 function encodeString($plainData) 1519 1537 { 1520 $plainData=utf8_encode($plainData );1538 $plainData=utf8_encode($plainData ?? ''); 1521 1539 return base64_encode($plainData); 1522 1540 }
Note: See TracChangeset
for help on using the changeset viewer.