getInitiateTransactionUrl function
Returns the URL for initiating a transaction.
The URL is constructed by concatenating the primary API URL (the first element of apiurl) with the "transaction/initiate-transaction" endpoint (the fourth element of apiEndpoint).
The resulting string is returned.
See also:
- apiurl, for the base API URLs.
- apiEndpoint, for the API endpoints.
Implementation
String getInitiateTransactionUrl() {
// Concatenate the primary API URL with the "transaction/initiate-transaction"
// endpoint to get the URL for initiating a transaction.
return getApiUrl() + apiEndpoint[4];
}