Interface PISApi
-
public interface PISApi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<PaymentAuthorizeResponse>authrizedPayment(String encryptedPaymentId, String authorisationId, String authCode)Provides a TAN for the validation of an authorizationorg.springframework.http.ResponseEntity<PaymentAuthorizeResponse>failPaymentAuthorisation(String encryptedPaymentId, String authorisationId)Fails PIS authorisation object by its ID.org.springframework.http.ResponseEntity<PaymentAuthorizeResponse>initiatePayment(String encryptedPaymentId, String authorisationId)Calls the consent validation page.org.springframework.http.ResponseEntity<PaymentAuthorizeResponse>login(String encryptedPaymentId, String authorisationId, String login, String pin)Identifies the user by login an pin.org.springframework.http.ResponseEntity<PaymentAuthorizeResponse>pisDone(String encryptedPaymentId, String authorisationId, boolean isOauth2Integrated, String authConfirmationCode)This call provides the server with the opportunity to close this session and redirect the PSU to the TPP or close the application window.org.springframework.http.ResponseEntity<PaymentAuthorizeResponse>selectMethod(String encryptedPaymentId, String authorisationId, String scaMethodId)Selects the SCA Method for use.
-
-
-
Field Detail
-
BASE_PATH
static final String BASE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
login
@PostMapping(path="/{encryptedPaymentId}/authorisation/{authorisationId}/login") org.springframework.http.ResponseEntity<PaymentAuthorizeResponse> login(@PathVariable("encryptedPaymentId") String encryptedPaymentId, @PathVariable("authorisationId") String authorisationId, @RequestParam(value="login",required=false) String login, @RequestParam(value="pin",required=false) String pin)Identifies the user by login an pin. Return sca methods information- Parameters:
encryptedPaymentId- the encryptedPaymentIdauthorisationId- the auth idlogin- the loginpin- the password- Returns:
- PaymentAuthorizeResponse
-
initiatePayment
@PostMapping(path="/{encryptedPaymentId}/authorisation/{authorisationId}/initiate") org.springframework.http.ResponseEntity<PaymentAuthorizeResponse> initiatePayment(@PathVariable("encryptedPaymentId") String encryptedPaymentId, @PathVariable("authorisationId") String authorisationId)Calls the consent validation page.- Parameters:
encryptedPaymentId- the sca idauthorisationId- the auth id- Returns:
- PaymentAuthorizeResponse
-
selectMethod
@PostMapping("/{encryptedPaymentId}/authorisation/{authorisationId}/methods/{scaMethodId}") org.springframework.http.ResponseEntity<PaymentAuthorizeResponse> selectMethod(@PathVariable("encryptedPaymentId") String encryptedPaymentId, @PathVariable("authorisationId") String authorisationId, @PathVariable("scaMethodId") String scaMethodId)Selects the SCA Method for use.- Parameters:
encryptedPaymentId- the sca idauthorisationId- the auth idscaMethodId- sca- Returns:
- PaymentAuthorizeResponse
-
authrizedPayment
@PostMapping(path="/{encryptedPaymentId}/authorisation/{authorisationId}/authCode", params="authCode") org.springframework.http.ResponseEntity<PaymentAuthorizeResponse> authrizedPayment(@PathVariable("encryptedPaymentId") String encryptedPaymentId, @PathVariable("authorisationId") String authorisationId, @RequestParam("authCode") String authCode)Provides a TAN for the validation of an authorization- Parameters:
encryptedPaymentId- the sca idauthorisationId- the auth idauthCode- the auth code- Returns:
- PaymentAuthorizeResponse
-
failPaymentAuthorisation
@DeleteMapping(path="/{encryptedPaymentId}/{authorisationId}") org.springframework.http.ResponseEntity<PaymentAuthorizeResponse> failPaymentAuthorisation(@PathVariable("encryptedPaymentId") String encryptedPaymentId, @PathVariable("authorisationId") String authorisationId)Fails PIS authorisation object by its ID.- Parameters:
encryptedPaymentId- ID of Payment- Returns:
trueif payment authorisation was found and failed.falseotherwise.
-
pisDone
@GetMapping(path="/{encryptedPaymentId}/authorisation/{authorisationId}/done") org.springframework.http.ResponseEntity<PaymentAuthorizeResponse> pisDone(@PathVariable("encryptedPaymentId") String encryptedPaymentId, @PathVariable("authorisationId") String authorisationId, @RequestParam(name="oauth2",required=false,defaultValue="false") boolean isOauth2Integrated, @RequestParam(name="authConfirmationCode",required=false) String authConfirmationCode)This call provides the server with the opportunity to close this session and redirect the PSU to the TPP or close the application window.In any case, the session of the user will be closed .
- Parameters:
encryptedPaymentId- ID of PaymentauthorisationId- ID of related Payment Authorisation- Returns:
- redirect location header with TPP url
-
-