Class PagamentiServiceImpl
java.lang.Object
it.unisa.thespoon.pagamenti.service.PagamentiServiceImpl
- All Implemented Interfaces:
PagamentiService
Classe che implementa i metodi del sottosistema Pagamento
- Author:
- Jacopo Gennaro Esposito
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OrdiniServiceprivate final RistoranteDAO(package private) String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String> creaSessionePagamento(Integer idOrdine, Integer idRistorante) voidhandleSuccessoPagamento(com.stripe.model.checkout.Session session)
-
Field Details
-
ordiniService
-
ristoranteDAO
-
stripeKey
-
-
Constructor Details
-
PagamentiServiceImpl
public PagamentiServiceImpl()
-
-
Method Details
-
creaSessionePagamento
public org.springframework.http.ResponseEntity<String> creaSessionePagamento(Integer idOrdine, Integer idRistorante) throws com.stripe.exception.StripeException - Specified by:
creaSessionePagamentoin interfacePagamentiService- Throws:
com.stripe.exception.StripeException
-
handleSuccessoPagamento
- Specified by:
handleSuccessoPagamentoin interfacePagamentiService- Parameters:
session-- Throws:
Exception
-