Collection
class Collection extends Product (View source)
Collection service/product.
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. |
|
protected string | $accountHolderInfoUri | Account holder basic info URI. |
Methods
Constructor.
Request collections access token.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Request payee to pay.
Get transaction status.
Get account balance.
Determine if an account holder is registered and active.
Get basic info of an account holder.
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)
Constructor.
array
getToken()
Request collections access token.
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
getAppAccountBalanceUri()
No description
setAppAccountBalanceUri(string $accountBalanceUri)
No description
string
getAccountHolderInfoUri()
No description
setAccountHolderInfoUri(string $accountHolderInfoUri)
No description
string
requestToPay(string $transactionId, string $partyId, int $amount, string $payerMessage = '', string $payeeNote = '')
Request payee to pay.
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.
array
getAccountHolderBasicInfo(string $partyId)
Get basic info of an account holder.