getInitiateTransactionUrl function

String getInitiateTransactionUrl()

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:

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];
}