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 aPaymentIntentfor the provided request.default PaymentIntentResponsegetPaymentIntentInfo(String paymentIntentId, String paymentIntentAccessToken, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Gets aPaymentIntentinfo for the specified id.
-
Method Details
-
createPaymentIntent
Creates aPaymentIntentfor 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 aPaymentIntentinfo 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
-