Package com.futbol.manager.controller
Class StripeController
java.lang.Object
com.futbol.manager.controller.GlobalCorsConfigController
com.futbol.manager.controller.StripeController
@RestController
@RequestMapping("/rest/stripe")
public class StripeController
extends GlobalCorsConfigController
Controlador Stripe
- Author:
- Alejandro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<com.futbol.manager.response.Response>createAccount(String email, String clubId) metodo para crear la cuenta de strips de un cluborg.springframework.http.ResponseEntity<com.futbol.manager.response.Response>processPayment(com.futbol.manager.dto.PaymentRequestDTO paymentRequest) metodo para realizar el pago con stripe
-
Constructor Details
-
StripeController
public StripeController()
-
-
Method Details
-
createAccount
@GetMapping("/create-account/{email}/{clubId}") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> createAccount(@PathVariable String email, @PathVariable String clubId) throws Exception metodo para crear la cuenta de strips de un club- Parameters:
email-clubId-- Returns:
- Throws:
Exception
-
processPayment
@PostMapping("/process-payment") public org.springframework.http.ResponseEntity<com.futbol.manager.response.Response> processPayment(@RequestBody com.futbol.manager.dto.PaymentRequestDTO paymentRequest) metodo para realizar el pago con stripe- Parameters:
paymentRequest-- Returns:
-