|
16 | 16 | use App\Services\Model\IProcessPaymentService; |
17 | 17 | use App\Services\Model\ISummitOrderService; |
18 | 18 | use Illuminate\Http\Request as LaravelRequest; |
19 | | -use Illuminate\Support\Facades\Cache; |
20 | 19 | use models\oauth2\IResourceServerContext; |
21 | 20 | use models\summit\IPaymentConstants; |
22 | 21 | use models\summit\ISummitRepository; |
@@ -124,11 +123,6 @@ public function genericConfirm($application_type, LaravelRequest $request){ |
124 | 123 | return $this->error412("cart id is null"); |
125 | 124 | } |
126 | 125 |
|
127 | | - $lock = Cache::lock("stripe:pi:{$cart_id}", 30); // 30s is enough |
128 | | - if (!$lock->get()) { |
129 | | - Log::warning("PaymentGatewayWebHookController::genericConfirm Skip concurrent webhook for {$cart_id}"); |
130 | | - return $this->ok(); // idempotent no-op |
131 | | - } |
132 | 126 | Log::debug(sprintf("PaymentGatewayWebHookController::genericConfirm cart id %s processing payment.", $cart_id)); |
133 | 127 |
|
134 | 128 | $service->processPayment($payload); |
@@ -196,11 +190,6 @@ public function confirm($summit_id, $application_type, LaravelRequest $request){ |
196 | 190 | return $this->error412("cart id is null"); |
197 | 191 | } |
198 | 192 |
|
199 | | - $lock = Cache::lock("stripe:pi:{$cart_id}", 30); // 30s is enough |
200 | | - if (!$lock->get()) { |
201 | | - Log::warning("PaymentGatewayWebHookController::confirm Skip concurrent webhook for {$cart_id}"); |
202 | | - return $this->ok(); // idempotent no-op |
203 | | - } |
204 | 193 | Log::debug(sprintf("PaymentGatewayWebHookController::confirm summit %s cart id %s processing payment.", $summit_id, $cart_id)); |
205 | 194 | $service->processPayment($payload, $summit); |
206 | 195 | return $this->ok(); |
|
0 commit comments