mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 01:39:24 +02:00

- Implemented cancelSubscription.json.php for handling subscription cancellations via JSON API. - Created cancelSubscription.php for managing subscription views and cancellation in the UI. - Developed getAcceptHostedToken.json.php to generate payment tokens for Authorize.Net. - Added getProfileManager.json.php for managing user profiles with Authorize.Net. - Implemented getSubscriptionStatus.json.php to check the status of subscriptions. - Created getSubscriptions.json.php to retrieve all subscriptions for the logged-in user. - Added SQL installation script for webhook logging. - Implemented processPayment.json.php for processing payments through Authorize.Net. - Developed webhook.php to handle incoming webhooks from Authorize.Net. - Integrated YPTWallet with Authorize.Net for wallet funding and subscription management. - Added confirmButton.php and confirmRecurrentButton.php for payment confirmation buttons in YPTWallet.
22 lines
776 B
SQL
22 lines
776 B
SQL
CREATE TABLE IF NOT EXISTS `anet_webhook_log` (
|
|
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
|
`uniq_key` VARCHAR(120) NOT NULL,
|
|
`event_type` VARCHAR(120) NOT NULL,
|
|
`trans_id` VARCHAR(45) NULL,
|
|
`payload_json` JSON NOT NULL,
|
|
`processed` TINYINT(1) NOT NULL DEFAULT 0,
|
|
`error_text` TEXT NULL,
|
|
`status` VARCHAR(45) NULL,
|
|
`created_php_time` BIGINT NULL,
|
|
`modified_php_time` BIGINT NULL,
|
|
`users_id` INT(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE INDEX `uniq_key_UNIQUE` (`uniq_key` ASC),
|
|
INDEX `fk_anet_webhook_log_users1_idx` (`users_id` ASC),
|
|
INDEX `event_type_index` (`event_type` ASC),
|
|
CONSTRAINT `fk_anet_webhook_log_users1`
|
|
FOREIGN KEY (`users_id`)
|
|
REFERENCES `users` (`id`)
|
|
ON DELETE NO ACTION
|
|
ON UPDATE NO ACTION)
|
|
ENGINE = InnoDB;
|