Skip to content

Commit db12398

Browse files
committed
Use a fork version for Tebex SDK
1 parent f6a3d21 commit db12398

File tree

3 files changed

+728
-806
lines changed

3 files changed

+728
-806
lines changed

backend/app/Http/Controllers/SupporterController.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,6 @@ public function tebexWebhook(Request $request) {
118118
Webhooks::setSecretKey($secret);
119119

120120
$json = file_get_contents('php://input');
121-
$json_sha256 = hash('sha256', $json);
122-
$json_sha256_hmac = hash_hmac('sha256', $json_sha256, $secret);
123-
log($secret);
124-
log($json_sha256);
125-
log($json_sha256_hmac);
126-
log($json);
127-
128121
$webhook = Webhook::parse($json);
129122

130123
// Respond to validation endpoint

backend/composer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"spatie/laravel-query-builder": "^6.2.0",
3939
"spatie/laravel-validation-rules": "^3.4",
4040
"teampanfu/laravel-hcaptcha": "^1.1",
41-
"tebex/tebex-sdk-php": "^1.1",
41+
"tebex/tebex-sdk-php": "dev-master",
4242
"ultrono/laravel-sitemap": "^9.3",
4343
"z4kn4fein/php-semver": "^3.0"
4444
},
@@ -81,6 +81,12 @@
8181
]
8282
}
8383
},
84+
"repositories": [
85+
{
86+
"type": "vcs",
87+
"url": "https://github.com/Luffyyy/tebex-sdk-php-fix-json"
88+
}
89+
],
8490
"config": {
8591
"optimize-autoloader": true,
8692
"apcu-autoloader": true,

0 commit comments

Comments
 (0)