Add PayPal webhook handler and marketing styles
- Implemented PayPal webhook for handling payment notifications, including signature verification and transaction updates. - Created invoice generation and license management for software upgrades upon successful payment. - Added comprehensive logging for debugging purposes. - Introduced new CSS styles for the marketing file management system, including layout, toolbar, breadcrumb navigation, search filters, and file management UI components.
This commit is contained in:
@@ -53,26 +53,26 @@ if ($equipment_ID !=''){
|
||||
}
|
||||
|
||||
//GET PRODUCTS
|
||||
$api_url = '/v1/products/list=';
|
||||
$api_url = '/v2/products/list=';
|
||||
$responses = ioServer($api_url,'');
|
||||
//Decode Payload
|
||||
if (!empty($responses)){$products = decode_payload($responses);}else{$products = null;}
|
||||
if (!empty($responses)){$products = json_decode($responses);}else{$products = null;}
|
||||
|
||||
if (isset($_GET['equipmentID'])) {
|
||||
// ID param exists, edit an existing product
|
||||
//CALL TO API
|
||||
$api_url = '/v1/equipments/equipmentID='.$equipment_ID;
|
||||
$api_url = '/v2/equipments/equipmentID='.$equipment_ID;
|
||||
$responses = ioServer($api_url,'');
|
||||
//Decode Payload
|
||||
if (!empty($responses)){$responses = decode_payload($responses);}else{$responses = null;}
|
||||
if (!empty($responses)){$responses = json_decode($responses,true);}else{$responses = null;}
|
||||
|
||||
$equipment = json_decode(json_encode($responses[0]), true);
|
||||
$equipment = $responses[0];
|
||||
|
||||
//GET PRODUCTS_SOFTWARE
|
||||
$api_url = '/v1/products_software/productrowid='.$equipment['productrowid'].'&status=1';
|
||||
//GET PRODUCTS_SOFTWARE_VERSIONS
|
||||
$api_url = '/v2/products_software_versions/hw_version='.$equipment['hw_version'].'&status=1';
|
||||
$products_software = ioServer($api_url,'');
|
||||
//Decode Payload
|
||||
if (!empty($products_software)){$products_software = decode_payload($products_software);}else{$products_software = null;}
|
||||
if (!empty($products_software)){$products_software = json_decode($products_software);}else{$products_software = null;}
|
||||
|
||||
//------------------------------------
|
||||
//CHECK IF USER IS ALSO CREATOR OF RECORD THEN OVERRIDE UPDATE_ALLOWED
|
||||
@@ -174,7 +174,7 @@ if (isset($products_software) && $products_software !=''){
|
||||
';
|
||||
foreach ($products_software as $products_soft ){
|
||||
if ($products_soft->hw_version == $equipment['hw_version']){
|
||||
$product_software_list .= '<option value="'.$products_soft->rowID.'" '.($equipment['sw_version_upgrade']==$products_soft->rowID?' selected':'').'>'.$products_soft->version.' - '.$products_soft->software.'</option>
|
||||
$product_software_list .= '<option value="'.$products_soft->rowID.'" '.($equipment['sw_version_upgrade']==$products_soft->rowID?' selected':'').'>'.$products_soft->description.' ('.$products_soft->version.')</option>
|
||||
';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user