PHP 클래스 Mollie_API_Client, mollie-api-php

All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
저자: Mollie B.V. ([email protected])
파일 보기 프로젝트 열기: mollie/mollie-api-php 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$customers Mollie_API_Resource_Customers RESTful Customers resource.
$customers_mandates Mollie_API_Resource_Customers_Mandates RESTful Customers Mandates resource.
$customers_payments Mollie_API_Resource_Customers_Payments RESTful Customers Payments resource.
$customers_subscriptions Mollie_API_Resource_Customers_Subscriptions RESTful Customers Subscriptions resource.
$issuers Mollie_API_Resource_Issuers RESTful Issuers resource.
$methods Mollie_API_Resource_Methods RESTful Methods resource.
$organizations Mollie_API_Resource_Organizations RESTful Organizations resource. NOTE: requires OAuth access token.
$payments Mollie_API_Resource_Payments RESTful Payments resource.
$payments_refunds Mollie_API_Resource_Payments_Refunds RESTful Payments Refunds resource.
$permissions Mollie_API_Resource_Permissions RESTful Permissions resource. NOTE: requires OAuth access token.
$profiles Mollie_API_Resource_Profiles RESTful Profiles resource. NOTE: requires OAuth access token.
$refunds Mollie_API_Resource_Refunds If you wish to create / get / list / cancel refunds with an API key, use the payment_refunds resource
$settlements Mollie_API_Resource_Settlements RESTful Settlements resource. NOTE: requires OAuth access token.

보호된 프로퍼티들

프로퍼티 타입 설명
$api_endpoint string
$api_key string
$ch resource
$last_http_response_status_code integer
$oauth_access boolean True if an OAuth access token is set as API key.
$pem_path string
$version_strings array

공개 메소드들

메소드 설명
__construct ( )
__destruct ( ) Close any cURL handles, if we have them.
__get ( string $resource_path ) : Mollie_API_Resource_Undefined
addVersionString ( string $version_string )
getApiEndpoint ( ) : string
getLastHttpResponseStatusCode ( ) : integer
performHttpCall ( $http_method, $api_method, $http_body = NULL ) : string Perform an http call. This method is used by the resource specific classes. Please use the $payments property to perform operations on payments.
setAccessToken ( string $access_token )
setApiEndpoint ( string $url )
setApiKey ( string $api_key )
setPemPath ( string $pem_path ) Overwrite the default path to the PEM file. Should only be used by advanced users.
usesOAuth ( ) : boolean

보호된 메소드들

메소드 설명
getCompatibilityChecker ( ) : Mollie_API_CompatibilityChecker

메소드 상세

__construct() 공개 메소드

public __construct ( )

__destruct() 공개 메소드

Close any cURL handles, if we have them.
public __destruct ( )

__get() 공개 메소드

public __get ( string $resource_path ) : Mollie_API_Resource_Undefined
$resource_path string
리턴 Mollie_API_Resource_Undefined

addVersionString() 공개 메소드

public addVersionString ( string $version_string )
$version_string string

getApiEndpoint() 공개 메소드

public getApiEndpoint ( ) : string
리턴 string

getCompatibilityChecker() 보호된 메소드

protected getCompatibilityChecker ( ) : Mollie_API_CompatibilityChecker
리턴 Mollie_API_CompatibilityChecker

getLastHttpResponseStatusCode() 공개 메소드

사용 중단: Do not use this method, it should only be used internally

performHttpCall() 공개 메소드

Perform an http call. This method is used by the resource specific classes. Please use the $payments property to perform operations on payments.
public performHttpCall ( $http_method, $api_method, $http_body = NULL ) : string
$http_method
$api_method
$http_body
리턴 string

setAccessToken() 공개 메소드

public setAccessToken ( string $access_token )
$access_token string OAuth access token, starting with 'access_'

setApiEndpoint() 공개 메소드

public setApiEndpoint ( string $url )
$url string

setApiKey() 공개 메소드

public setApiKey ( string $api_key )
$api_key string The Mollie API key, starting with 'test_' or 'live_'

setPemPath() 공개 메소드

Overwrite the default path to the PEM file. Should only be used by advanced users.
public setPemPath ( string $pem_path )
$pem_path string

usesOAuth() 공개 메소드

public usesOAuth ( ) : boolean
리턴 boolean

프로퍼티 상세

$api_endpoint 보호되어 있는 프로퍼티

protected string $api_endpoint
리턴 string

$api_key 보호되어 있는 프로퍼티

protected string $api_key
리턴 string

$ch 보호되어 있는 프로퍼티

protected resource $ch
리턴 resource

$customers 공개적으로 프로퍼티

RESTful Customers resource.
public Mollie_API_Resource_Customers $customers
리턴 Mollie_API_Resource_Customers

$customers_mandates 공개적으로 프로퍼티

RESTful Customers Mandates resource.
public Mollie_API_Resource_Customers_Mandates $customers_mandates
리턴 Mollie_API_Resource_Customers_Mandates

$customers_payments 공개적으로 프로퍼티

RESTful Customers Payments resource.
public Mollie_API_Resource_Customers_Payments $customers_payments
리턴 Mollie_API_Resource_Customers_Payments

$customers_subscriptions 공개적으로 프로퍼티

RESTful Customers Subscriptions resource.
public Mollie_API_Resource_Customers_Subscriptions $customers_subscriptions
리턴 Mollie_API_Resource_Customers_Subscriptions

$issuers 공개적으로 프로퍼티

RESTful Issuers resource.
public Mollie_API_Resource_Issuers $issuers
리턴 Mollie_API_Resource_Issuers

$last_http_response_status_code 보호되어 있는 프로퍼티

protected int $last_http_response_status_code
리턴 integer

$methods 공개적으로 프로퍼티

RESTful Methods resource.
public Mollie_API_Resource_Methods $methods
리턴 Mollie_API_Resource_Methods

$oauth_access 보호되어 있는 프로퍼티

True if an OAuth access token is set as API key.
protected bool $oauth_access
리턴 boolean

$organizations 공개적으로 프로퍼티

RESTful Organizations resource. NOTE: requires OAuth access token.
public Mollie_API_Resource_Organizations $organizations
리턴 Mollie_API_Resource_Organizations

$payments 공개적으로 프로퍼티

RESTful Payments resource.
public Mollie_API_Resource_Payments $payments
리턴 Mollie_API_Resource_Payments

$payments_refunds 공개적으로 프로퍼티

RESTful Payments Refunds resource.
public Mollie_API_Resource_Payments_Refunds $payments_refunds
리턴 Mollie_API_Resource_Payments_Refunds

$pem_path 보호되어 있는 프로퍼티

protected string $pem_path
리턴 string

$permissions 공개적으로 프로퍼티

RESTful Permissions resource. NOTE: requires OAuth access token.
public Mollie_API_Resource_Permissions $permissions
리턴 Mollie_API_Resource_Permissions

$profiles 공개적으로 프로퍼티

RESTful Profiles resource. NOTE: requires OAuth access token.
public Mollie_API_Resource_Profiles $profiles
리턴 Mollie_API_Resource_Profiles

$refunds 공개적으로 프로퍼티

If you wish to create / get / list / cancel refunds with an API key, use the payment_refunds resource
public Mollie_API_Resource_Refunds $refunds
리턴 Mollie_API_Resource_Refunds

$settlements 공개적으로 프로퍼티

RESTful Settlements resource. NOTE: requires OAuth access token.
public Mollie_API_Resource_Settlements $settlements
리턴 Mollie_API_Resource_Settlements

$version_strings 보호되어 있는 프로퍼티

protected array $version_strings
리턴 array