This commit is contained in:
Anonymous
2019-10-23 18:13:54 +08:00
parent 51cf3b1b76
commit 0b62ae8591
10 changed files with 100 additions and 51 deletions

View File

@ -12,12 +12,12 @@ class OrderController extends Controller
public function stripeNotify (Request $request) {
Log::info('stripeNotifyData: ' . json_encode($request->input()));
\Stripe\Stripe::setApiKey(config('v2panel.stripe_sk_live'));
\Stripe\Stripe::setApiKey(config('v2board.stripe_sk_live'));
try {
$event = \Stripe\Webhook::constructEvent(
file_get_contents('php://input'),
$_SERVER['HTTP_STRIPE_SIGNATURE'],
config('v2panel.stripe_webhook_key')
config('v2board.stripe_webhook_key')
);
} catch (\Stripe\Error\SignatureVerification $e) {
abort(400);