作者 lyh

gx同步项目设置服务器

@@ -147,6 +147,7 @@ class PayStripeApi @@ -147,6 +147,7 @@ class PayStripeApi
147 public static function handleWebhook() 147 public static function handleWebhook()
148 { 148 {
149 try { 149 try {
  150 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export(11111, true) . PHP_EOL, FILE_APPEND);
150 // Webhook 签名密钥(从 Stripe 仪表盘获取) 151 // Webhook 签名密钥(从 Stripe 仪表盘获取)
151 $endpointSecret = 'whsec_garhW2TrCIrduyM3rve9mFS2sn69B9Yt'; 152 $endpointSecret = 'whsec_garhW2TrCIrduyM3rve9mFS2sn69B9Yt';
152 // 获取原始请求内容 153 // 获取原始请求内容
@@ -169,7 +170,6 @@ class PayStripeApi @@ -169,7 +170,6 @@ class PayStripeApi
169 // 获取事件类型 170 // 获取事件类型
170 $eventType = $event['type']; 171 $eventType = $event['type'];
171 $eventData = $event['data']['object']; 172 $eventData = $event['data']['object'];
172 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export($eventType, true) . PHP_EOL, FILE_APPEND);  
173 // 根据事件类型处理 173 // 根据事件类型处理
174 switch ($eventType) { 174 switch ($eventType) {
175 case 'payment_intent.succeeded': 175 case 'payment_intent.succeeded':