Interface StripeSetupIntentService
- All Known Implementing Classes:
DefaultStripeSetupIntentService
public interface StripeSetupIntentService
The service is used to work with SetupIntent API.
- Author:
- Dima Myroniuk (dmyroniuk)
-
Method Summary
Modifier and TypeMethodDescriptioncreateSetupIntent
(SetupIntentRequest request) Creates a SetupIntent object for the provided request.default SetupIntentResponse
getSetupIntentInfo
(ReadSetupIntentRequest request) Gets aSetupIntent
info for the specified id.
-
Method Details
-
createSetupIntent
Creates a SetupIntent object for the provided request. It can be used to attach a payment method and confirm to collect any required permissions to charge the payment method later.If the
SetupIntentRequest.getStripeCustomerId()
is not provided the newCustomer
will be created.This method supports creating the SetupIntent for the "us_bank_account" payment method type (ACH). To specify this type add
PAYMENT_METHOD_TYPE
to theSetupIntentRequest.additionalFields
with "us_bank_account" value.- Parameters:
request
- the request to create theSetupIntent
- Returns:
- the response that contains the
SetupIntent.getClientSecret()
and theCustomer
ID for which this intent was created
-
getSetupIntentInfo
Gets aSetupIntent
info for the specified id.- Parameters:
request
- the request to read the SetupIntent- Returns:
- the SetupIntent info for the specified id
-