Allow to use Seller API.
package |
Default |
---|
__construct(\Dotpay\Model\Configuration $config, \Dotpay\Tool\Curl $curl)
checkFccPin() : boolean
boolean
checkIdAndPin(integer $id, string $pin) : boolean
integer
Seller id
string
Seller pin
boolean
checkPin() : boolean
boolean
close()
getAcceptHeader() : string
string
getAccount(integer $id) : \Dotpay\Model\Account
Throws |
|
---|
integer
Seller id
\Dotpay\Model\Account
getApiUrl(string $end) : string
string
End point of the Api
string
getContent(string $url) : array
Throws |
|
---|
string
Url of a destination request
array
Result which is decoded as array
getCurl() : \Dotpay\Tool\Curl
getDataForPayout(\Dotpay\Model\Payout $payout) : array
getDataFromApi(string $targetUrl) : array
Throws |
|
---|
string
Url of the target resource
array
getOperationById(mixed $id) : \Dotpay\Model\Operation
Throws |
|
---|
mixed
Operation identifier
\Dotpay\Model\Operation
getOperationByNumber(string $number) : \Dotpay\Model\Operation
Throws |
|
---|
string
Number of a operation
\Dotpay\Model\Operation
getPaginateDataFromApi(string $url) : array
Throws |
|
---|
string
Url address of the selected target
array
getWrapedOperation(array $input) : \Dotpay\Model\Operation
isAccountRight() : boolean
boolean
makePayout(\Dotpay\Model\Seller $seller, \Dotpay\Model\Payout $payout) : boolean
Throws |
|
---|
boolean
makeRefund(\Dotpay\Model\Refund $refund) : boolean
Throws |
|
---|
boolean
postData(string $url, \Dotpay\Resource\sring $body) : array
string
Url of a destination request
\Dotpay\Resource\sring
Body content of request which is encoded as JSON string
array
loader : \Dotpay\Loader\Loader
config : \Dotpay\Model\Configuration
curl : \Dotpay\Tool\Curl
info : array
var |
Information about last request |
---|
array