From 5a007dd5d1643718da278cbb032da3bd748c771c Mon Sep 17 00:00:00 2001 From: paula_rodriguezslash <paula.rodriguez@slashmobility.com> Date: Tue, 23 Apr 2024 18:46:32 +0100 Subject: [PATCH] return client secret not payment intent xd --- BookingMicroservice/Controllers/BookingController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/BookingMicroservice/Controllers/BookingController.cs b/BookingMicroservice/Controllers/BookingController.cs index 9d8953a..71d7392 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 }); } } -- GitLab