Class StripePaymentIntentEndpoint
java.lang.Object
com.broadleafcommerce.web.endpoint.StripePaymentIntentEndpoint
@FrameworkRestController
@FrameworkMapping("/stripe/payment-intent")
public class StripePaymentIntentEndpoint
extends Object
- Author:
- Divyank Chavan.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStripePaymentIntentEndpoint
(StripePaymentIntentService stripePaymentIntentService) -
Method Summary
Modifier and TypeMethodDescriptioncreatePaymentIntent
(PaymentIntentRequest paymentIntentRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) getPaymentIntentInfo
(String id, String accessToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected StripePaymentIntentService
org.springframework.http.ResponseEntity<String>
handleIllegalArgumentException
(IllegalArgumentException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<String>
handleStripePaymentIntentCreationException
(StripePaymentIntentCreationException ex, org.springframework.web.context.request.WebRequest request)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
StripePaymentIntentEndpoint
-
-
Method Details
-
createPaymentIntent
@FrameworkPostMapping(consumes="application/json") @Policy(permissionRoots="STRIPE_PAYMENT_INTENT") public PaymentIntentResponse createPaymentIntent(@RequestBody PaymentIntentRequest paymentIntentRequest, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
getPaymentIntentInfo
@FrameworkGetMapping(value="/{id}", produces="application/json") @Policy(permissionRoots="STRIPE_PAYMENT_INTENT") public PaymentIntentResponse getPaymentIntentInfo(@PathVariable String id, String accessToken, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
handleIllegalArgumentException
@ExceptionHandler(java.lang.IllegalArgumentException.class) public org.springframework.http.ResponseEntity<String> handleIllegalArgumentException(IllegalArgumentException ex, org.springframework.web.context.request.WebRequest request) -
handleStripePaymentIntentCreationException
@ExceptionHandler(StripePaymentIntentCreationException.class) public org.springframework.http.ResponseEntity<String> handleStripePaymentIntentCreationException(StripePaymentIntentCreationException ex, org.springframework.web.context.request.WebRequest request) -
getStripePaymentIntentService
-