Remittance
class Remittance extends Product (View source)
Remittance service/product.
Properties
protected Repository | $config | Configuration. | from Product |
protected Client | $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 | $clientRedirectUri | Client redirect 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
Constructor.
Request remittance access token.
No description
No description
No description
No description
No description
No description
No description
No description
Transfer from your own account to another person's account.
Transfer from your own account to another person's 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
getClientRedirectUri()
No description
setClientRedirectUri(string $clientRedirectUri)
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)
Constructor.
array
getToken()
Request remittance 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
transact(string $transactionId, string $partyId, int $amount, string $payerMessage = '', string $payeeNote = '')
Transfer from your own account to another person's account.
string
transfer(string $transactionId, string $partyId, int $amount, string $payerMessage = '', string $payeeNote = '')
Transfer from your own account to another person's 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.