Merge pull request #238 from WDI-Ideas/HritikCheers

Hritik cheers
This commit is contained in:
Hritikkk9
2024-07-03 15:02:48 +05:30
committed by GitHub
3 changed files with 4 additions and 8 deletions

View File

@@ -2,17 +2,13 @@
namespace App\Http\Controllers\APIs\Customer_API;
use App\Helpers\onesignalhelper;
use App\Http\Controllers\Controller;
use App\Models\IamPrincipal;
use App\Models\SubscriptionProducts;
use App\Models\Subscriptions;
use Illuminate\Http\Request;
use Stripe\Event;
use Stripe\Stripe;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\DB;
@@ -46,7 +42,7 @@ class StripeWebhookController extends Controller
$stripeSecret = (config('constants.subscription.stripe_secret_key'));
// $stripe = new StripeClient($stripeSecret);
$stripe = new \Stripe\StripeClient($stripeSecret);

View File

@@ -12,6 +12,6 @@ class VerifyCsrfToken extends Middleware
* @var array<int, string>
*/
protected $except = [
'stripe-webhook',
'/stripe-webhook',
];
}

View File

@@ -31,7 +31,7 @@ use App\Http\Controllers\Admin\ManageRulesController;
//webhook
Route::post('stripe-webhook', [StripeWebhookController::class, 'handleWebhook']);
Route::post('/stripe-webhook', [StripeWebhookController::class, 'handleWebhook']);
//stripe webhook end