public static final class RedirectFlowService.RedirectFlowCompleteRequest extends PostRequest<RedirectFlow>
Request class for RedirectFlowService.complete(java.lang.String)
.
This creates a customer, customer bank account, and mandate using the details supplied by your customer and returns the ID of the created mandate.
This will return a redirect_flow_incomplete
error if your customer has not yet been redirected back to your site, and a redirect_flow_already_completed
error if your integration has already completed this flow. It will return a bad_request
error if the session_token
differs to the one supplied when the redirect flow was created.
Modifier and Type | Method and Description |
---|---|
RedirectFlowService.RedirectFlowCompleteRequest |
withHeader(java.lang.String headerName,
java.lang.String headerValue) |
RedirectFlowService.RedirectFlowCompleteRequest |
withSessionToken(java.lang.String sessionToken)
The customer’s session ID must be provided when the redirect flow is set up and again when it is completed.
|
execute, executeWrapped
public RedirectFlowService.RedirectFlowCompleteRequest withSessionToken(java.lang.String sessionToken)
The customer’s session ID must be provided when the redirect flow is set up and again when it is completed. This allows integrators to ensure that the user who was originally sent to the GoCardless payment pages is the one who has completed them.
public RedirectFlowService.RedirectFlowCompleteRequest withHeader(java.lang.String headerName, java.lang.String headerValue)