fix: PayPal webhook path, billing table migrations, diagnostics layout, error logging
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/5bfe8731-c37a-4f7b-a5c7-fbc0393ae134 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
19b32af973
commit
0fcdda2ee3
7 changed files with 531 additions and 81 deletions
|
|
@ -24,8 +24,8 @@
|
|||
|
||||
// Module general information
|
||||
$module_title = "billing";
|
||||
$module_version = "3.3";
|
||||
$db_version = 3;
|
||||
$module_version = "3.4";
|
||||
$db_version = 4;
|
||||
$module_required = FALSE;
|
||||
// Module description
|
||||
$module_description = "Billing storefront / provisioning integration. Public ordering runs as a standalone site; panel pages provide provisioning and admin order management.";
|
||||
|
|
@ -346,4 +346,26 @@ $install_queries[3] = array(
|
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;"
|
||||
);
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// db_version 4 — Add billing_paypal_errors table for checkout error logging.
|
||||
// -----------------------------------------------------------------------
|
||||
$install_queries[4] = array(
|
||||
"CREATE TABLE IF NOT EXISTS `OGP_DB_PREFIXbilling_paypal_errors` (
|
||||
`id` INT NOT NULL AUTO_INCREMENT,
|
||||
`context` VARCHAR(64) NOT NULL DEFAULT '',
|
||||
`error_code` VARCHAR(128) NOT NULL DEFAULT '',
|
||||
`message` TEXT NULL,
|
||||
`paypal_debug_id` VARCHAR(128) NULL,
|
||||
`order_id` VARCHAR(128) NULL,
|
||||
`capture_id` VARCHAR(128) NULL,
|
||||
`billing_order_id` INT NULL,
|
||||
`user_id` INT NULL,
|
||||
`raw_json` LONGTEXT NULL,
|
||||
`created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `idx_context` (`context`),
|
||||
KEY `idx_created_at` (`created_at`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;"
|
||||
);
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue