Class StripePaymentIntentEndpoint

java.lang.Object
com.broadleafcommerce.web.endpoint.StripePaymentIntentEndpoint

@FrameworkRestController @FrameworkMapping("/stripe/payment-intent") public class StripePaymentIntentEndpoint extends Object
Author:
Divyank Chavan.
  • Field Details

  • Constructor Details

  • 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

      protected StripePaymentIntentService getStripePaymentIntentService()