public interface OrderRequestGenerator
| Modifier and Type | Method and Description |
|---|---|
OrderRequest |
generate(PaymentRequired paymentRequired,
CachableHttpServletRequest request)
Method that should populate a new OrderRequest to initiate a
payment flow using the PaymentRequired annotation and the
related HTTP request.
|
OrderRequest generate(PaymentRequired paymentRequired, CachableHttpServletRequest request) throws java.lang.IllegalArgumentException, InternalErrorException
paymentRequired - the related annotation.request - the HTTP request related to the call.java.lang.IllegalArgumentException - if user supplied data was invalid to generate order request.InternalErrorException - if problem occurred generated order request data due to internal miss configuration.