Interface StripePaymentIntentService
- All Known Implementing Classes:
DefaultStripePaymentIntentService
public interface StripePaymentIntentService
This service is used for creating a Stripe
PaymentIntent
.- Author:
- Divyank Chavan.
-
Method Summary
Modifier and TypeMethodDescriptioncreatePaymentIntent
(PaymentIntentRequest paymentIntentRequest) Creates aPaymentIntent
for the provided request.default PaymentIntentResponse
getPaymentIntentInfo
(String paymentIntentId, String paymentIntentAccessToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Gets aPaymentIntent
info for the specified id.
-
Method Details
-
createPaymentIntent
Creates aPaymentIntent
for the provided request.- Parameters:
paymentIntentRequest
- Request used to create aPaymentIntent
- Returns:
- PaymentIntentResponse Information about the created
PaymentIntent
-
getPaymentIntentInfo
default PaymentIntentResponse getPaymentIntentInfo(String paymentIntentId, @Nullable String paymentIntentAccessToken, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Gets aPaymentIntent
info for the specified id.- Parameters:
paymentIntentId
- the payment intent idpaymentIntentAccessToken
- the payment intent access tokencontextInfo
- Request context information around sandbox and multitenant state- Returns:
- the payment intent info for the specified id
-