diff --git a/BookingMicroservice/Controllers/BookingController.cs b/BookingMicroservice/Controllers/BookingController.cs index 9d8953ad4e996aeb86348b3dd7c7b5733a30d34f..71d73923f50a9fd4a9d09948bc7489e31d2a9f8f 100644 --- a/BookingMicroservice/Controllers/BookingController.cs +++ b/BookingMicroservice/Controllers/BookingController.cs @@ -142,7 +142,6 @@ namespace BookingMicroservice.Controllers } } - [Authorize] [HttpPost("create-payment-intent")] public async Task<IActionResult> CreatePaymentIntent([FromBody] PaymentIntentCreateRequest request) { @@ -157,7 +156,7 @@ namespace BookingMicroservice.Controllers }, }); - return new JsonResult(new { PaymentIntentId = paymentIntent.Id }); + return new JsonResult(new { clientSecret = paymentIntent.ClientSecret }); } }