PHP 클래스 YandexMoney\API

상속: extends BaseAPI
파일 보기 프로젝트 열기: yandex-money/yandex-money-sdk-php 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $access_token )
accountInfo ( ) : response Returns information about a user's wallet
buildObtainTokenUrl ( string $client_id, string $redirect_uri, string $scope ) : response Builds authorization url for user's browser
checkToken ( )
getAccessToken ( string $client_id, string $code, string $redirect_uri, string $client_secret = NULL ) : response Exchanges temporary authorization code for an access_token.
getAuxToken ( $scope )
incomingTransferAccept ( string $operation_id, string $protection_code = NULL ) : response Accepts incoming transfer with a protection code or deferred transfer.
incomingTransferReject ( string $operation_id ) : response Rejects incoming transfer with a protection code or deferred trasfer.
operationDetails ( string $operation_id ) : response Returns details of operation specified by operation_id.
operationHistory ( array[] $options = NULL ) : response Returns operation history of a user's wallet.
processPayment ( array[] $options ) : response Confirms a payment that was created using the request-payment method.
requestPayment ( array[] $options ) : response Requests a payment.
revokeToken ( string $token, string $revoke_all = false ) : response Revokes a token.
sendAuthenticatedRequest ( $url, $options = [] )

메소드 상세

__construct() 공개 메소드

public __construct ( $access_token )

accountInfo() 공개 메소드

Returns information about a user's wallet
또한 보기: http://api.yandex.com/money/doc/dg/reference/account-info.xml
또한 보기: https://tech.yandex.ru/money/doc/dg/reference/account-info-docpage/
public accountInfo ( ) : response
리턴 response object

buildObtainTokenUrl() 공개 정적인 메소드

Builds authorization url for user's browser
또한 보기: http://api.yandex.com/money/doc/dg/reference/request-access-token.xml
또한 보기: https://tech.yandex.ru/money/doc/dg/reference/request-access-token-docpage/
public static buildObtainTokenUrl ( string $client_id, string $redirect_uri, string $scope ) : response
$client_id string The client_id that was assigned to the application.
$redirect_uri string URI that the OAuth server sends the authorization result to. Must have a string value that exactly matches the redirect_uri parameter specified in the application registration data. Any additional parameters required for the application can beadded at the end of the string.
$scope string A string of requested permissions(joined list of strings)
리턴 response object

checkToken() 공개 메소드

public checkToken ( )

getAccessToken() 공개 정적인 메소드

Exchanges temporary authorization code for an access_token.
또한 보기: http://api.yandex.com/money/doc/dg/reference/obtain-access-token.xml
또한 보기: https://tech.yandex.ru/money/doc/dg/reference/obtain-access-token-docpage/
public static getAccessToken ( string $client_id, string $code, string $redirect_uri, string $client_secret = NULL ) : response
$client_id string The client_id that was assigned to the application.
$code string Temporary token.
$redirect_uri string URI that the OAuth server sends the authorization result to. The value must exactly match the `redirect_uri` value from the previous "authorize" call.
$client_secret string A secret word for verifying the application's authenticity. Specified if the service is registered with the option to verify authenticity.
리턴 response object

getAuxToken() 공개 메소드

public getAuxToken ( $scope )

incomingTransferAccept() 공개 메소드

Accepts incoming transfer with a protection code or deferred transfer.
또한 보기: http://api.yandex.com/money/doc/dg/reference/incoming-transfer-accept.xml
또한 보기: https://tech.yandex.ru/money/doc/dg/reference/incoming-transfer-accept-docpage/
public incomingTransferAccept ( string $operation_id, string $protection_code = NULL ) : response
$operation_id string
$protection_code string Used in case of protected transfer. Omitted for deffered transfers
리턴 response object

incomingTransferReject() 공개 메소드

Rejects incoming transfer with a protection code or deferred trasfer.
또한 보기: http://api.yandex.com/money/doc/dg/reference/incoming-transfer-reject.xml
또한 보기: https://tech.yandex.ru/money/doc/dg/reference/incoming-transfer-reject-docpage/
public incomingTransferReject ( string $operation_id ) : response
$operation_id string
리턴 response object

operationDetails() 공개 메소드

Returns details of operation specified by operation_id.
또한 보기: http://api.yandex.com/money/doc/dg/reference/operation-details.xml
또한 보기: https://tech.yandex.ru/money/doc/dg/reference/operation-details-docpage/
public operationDetails ( string $operation_id ) : response
$operation_id string
리턴 response object

operationHistory() 공개 메소드

Returns operation history of a user's wallet.
또한 보기: http://api.yandex.com/money/doc/dg/reference/operation-history.xml
또한 보기: https://tech.yandex.ru/money/doc/dg/reference/operation-history-docpage/
public operationHistory ( array[] $options = NULL ) : response
$options array[] Key-value parameters collection
리턴 response object

processPayment() 공개 메소드

Confirms a payment that was created using the request-payment method.
또한 보기: http://api.yandex.com/money/doc/dg/reference/process-payment.xml
또한 보기: https://tech.yandex.ru/money/doc/dg/reference/process-payment-docpage/
public processPayment ( array[] $options ) : response
$options array[] Key-value parameters collection
리턴 response object

requestPayment() 공개 메소드

Requests a payment.
또한 보기: http://api.yandex.com/money/doc/dg/reference/request-payment.xml
또한 보기: https://tech.yandex.ru/money/doc/dg/reference/request-payment-docpage/
public requestPayment ( array[] $options ) : response
$options array[] Key-value parameters collection
리턴 response object

revokeToken() 공개 정적인 메소드

Revokes a token.
또한 보기: http://api.yandex.com/money/doc/dg/reference/incoming-transfer-reject-xml
또한 보기: https://tech.yandex.ru/money/doc/dg/reference/incoming-transfer-reject-docpage/
public static revokeToken ( string $token, string $revoke_all = false ) : response
$token string A token to be revoked
$revoke_all string
리턴 response object

sendAuthenticatedRequest() 공개 메소드

public sendAuthenticatedRequest ( $url, $options = [] )