public interface WebServiceApiClient
The request manager provides an asynchronous way to communicate with the web service API. This implies to call the remote service a callback as to be provided which is invoked once the request has completed.
The request manager is not responsible to cache the returned result.
| Modifier and Type | Method and Description |
|---|---|
void |
buildMobileSdkUrl(RequestCallback<MobileSdkUrl> callback)
This method constructs the URL which can be used to render the payment form within a
WebView. |
void |
fetchPaymentMethodConfigurations(RequestCallback<java.util.List<PaymentMethodConfiguration>> callback)
This method fetches the possible payment methods from the remote server.
|
void |
fetchTokenVersions(RequestCallback<java.util.List<TokenVersion>> callback)
This method fetches the
TokenVersion which may be used by the app user. |
void |
processOneClickToken(Token token,
RequestCallback<Transaction> callback)
This method processes the transaction with the given
token. |
void |
readTransaction(RequestCallback<Transaction> callback)
This method fetches the transaction object.
|
void fetchTokenVersions(RequestCallback<java.util.List<TokenVersion>> callback)
TokenVersion which may be used by the app user. The returned
tokens are intended to be uses as one-click tokens. The method will only return valid tokens.callback - the callback which is invoked once the token versions have been loaded.void buildMobileSdkUrl(RequestCallback<MobileSdkUrl> callback)
WebView. The URL is used for example in DefaultPaymentFormView.callback - the callback which is invoked once the URL has been loaded.void fetchPaymentMethodConfigurations(RequestCallback<java.util.List<PaymentMethodConfiguration>> callback)
Credentials. As such the method
may return less payment methods as configured in the wallee backend.
The payment method configuration is linked with an icon. This icon can be loaded by IconRequestManager.fetchIcon(PaymentMethodConfiguration, RequestCallback).
callback - the callback which is invoked once all the payment methods has been loaded.void readTransaction(RequestCallback<Transaction> callback)
callback - the callback which is invoked once the transaction has been loaded.void processOneClickToken(Token token, RequestCallback<Transaction> callback)
token. Processing means the
remote server is invoked to authorize the transaction.token - the token which should be used to process the transaction.callback - the callback which is invoked once the remote server gives a response.