Disbursement
class Disbursement extends Product (View source)
Class Disbursement.
Constants
PRODUCT |
Product. |
Properties
protected Repository | $config | Configuration. | from Product |
protected ClientInterface | $client | HTTP client. |
from Product |
protected string | $baseUri | Base URI. |
from Product |
protected string | $tokenUri | Token URI. |
from Product |
protected string | $subscriptionKey | Subscription key. |
from Product |
protected string | $clientId | Client ID. |
from Product |
protected string | $clientSecret | Client secret. |
from Product |
protected string | $clientCallbackUri | Client callback URI. |
from Product |
protected string | $currency | Currency. | from Product |
protected string | $environment | Environment. | from Product |
protected string | $partyIdType | Party ID type. |
from Product |
protected string | $logFile | Log file. |
from Product |
protected string | $transactionUri | Transact URI. |
|
protected string | $transactionStatusUri | Transaction status URI. |
|
protected string | $accountStatusUri | Account status URI. |
|
protected string | $accountBalanceUri | Account balance URI. |
Methods
Disbursement constructor.
Request disbursement access token.
No description
No description
No description
No description
No description
No description
No description
No description
Transfer an amount to a payee account.
Get transaction status.
Get account balance.
Determine if an account holder is registered and active.
Details
ClientInterface
getClient()
No description
setClient(ClientInterface $client)
No description
string
getBaseUri()
No description
setBaseUri(string $baseUri)
No description
string
getTokenUri()
No description
setTokenUri(string $tokenUri)
No description
string
getSubscriptionKey()
No description
setSubscriptionKey(string $subscriptionKey)
No description
string
getClientId()
No description
setClientId(string $clientId)
No description
string
getClientSecret()
No description
setClientSecret(string $clientSecret)
No description
string
getClientCallbackUri()
No description
setClientCallbackUri(string $clientCallbackUri)
No description
string
getCurrency()
No description
setCurrency(string $currency)
No description
string
getEnvironment()
No description
setEnvironment(string $environment)
No description
string
getPartyIdType()
No description
setPartyIdType(string $partyIdType)
No description
string
getLogFile()
No description
setLogFile(string $logFile)
No description
__construct(array $headers = [], array $middleware = [], ClientInterface $client = null)
Disbursement constructor.
array
getToken()
Request disbursement access token.
protected callable
getLogMiddleware()
Get log middleware.
protected OAuth2Middleware
getAuthBroker(array $headers)
Get authentication broker.
string
getTransactionUri()
No description
setTransactionUri(string $transactionUri)
No description
string
getTransactionStatusUri()
No description
setTransactionStatusUri(string $transactionStatusUri)
No description
string
getAccountStatusUri()
No description
setAccountStatusUri(string $accountStatusUri)
No description
string
getAccountBalanceUri()
No description
setAccountBalanceUri(string $accountBalanceUri)
No description
string
transfer(string $transactionId, string $partyId, int $amount, string $payerMessage = '', string $payeeNote = '')
Transfer an amount to a payee account.
array
getTransactionStatus(string $momoTransactionId)
Get transaction status.
array
getAccountBalance()
Get account balance.
bool
isActive(string $partyId, string $partyIdType = null)
Determine if an account holder is registered and active.