@Component public class CreatePaymentValidator extends Object implements BusinessValidator<CreatePaymentRequestObject>
| Constructor and Description |
|---|
CreatePaymentValidator() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull ValidationResult |
validate(@NotNull CreatePaymentRequestObject createPaymentRequestObject)
Validates create payment request by checking whether:
Payment product and payment type are correct
PSU Data is present in the request if it's mandated by the profile
Account references are supported by ASPSP
|
@NotNull public @NotNull ValidationResult validate(@NotNull @NotNull CreatePaymentRequestObject createPaymentRequestObject)
validate in interface BusinessValidator<CreatePaymentRequestObject>createPaymentRequestObject - payment request object with information about the paymentCopyright © 2019. All rights reserved.