PHP 클래스 Chargify

A Chargify API class for CodeIgniter
저자: Kyle Anderson ([email protected])
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $api_key, $domain )
applyCoupon ( $subscriptionId, $couponCode )
cancelSubscription ( $subscriptionId, $reason = 'Canceling the subscription via the API. Requested by customer.' )
createComponentUsage ( $subscriptionId, $componentId, $quantity, $memo )
createCustomer ( $scalr_client_id, $email, $first_name, $last_name, $org = "" ) : ChargifyCustomer
createSubscription ( $scalrAccountId, $package, $ccNumber, $ccExpMonth, $ccExpYear, $ccCvv, $clientInfo = false, $postalCode = false )
getCouponDetails ( $couponCode )
getCustomerById ( $customerId )
getCustomerSubscriptionByCId ( $client_id ) : ChargifySubscription
getStatements ( $subscriptionId )
getSubscription ( $subscriptionId )
getSubscriptionByCustomerId ( $clientId )
getSubscriptionComponents ( $subscriptionId )
reactivateSubscription ( $subscriptionId )
setComponentValue ( $subscriptionId, $componentId, $value )
updateSubscription ( $subscriptionId, $ccNumber, $ccCvv, $ccExpMonth, $ccExpYear, $fName, $lName, $postalCode = false )
upgradeSubscription ( $subscriptionId, $package, $includeTrial = false )

보호된 메소드들

메소드 설명
sendRequest ( $uri, $method, $data = null )

메소드 상세

__construct() 공개 메소드

public __construct ( $api_key, $domain )

applyCoupon() 공개 메소드

public applyCoupon ( $subscriptionId, $couponCode )

cancelSubscription() 공개 메소드

public cancelSubscription ( $subscriptionId, $reason = 'Canceling the subscription via the API. Requested by customer.' )

createComponentUsage() 공개 메소드

public createComponentUsage ( $subscriptionId, $componentId, $quantity, $memo )

createCustomer() 공개 메소드

public createCustomer ( $scalr_client_id, $email, $first_name, $last_name, $org = "" ) : ChargifyCustomer
리턴 ChargifyCustomer

createSubscription() 공개 메소드

public createSubscription ( $scalrAccountId, $package, $ccNumber, $ccExpMonth, $ccExpYear, $ccCvv, $clientInfo = false, $postalCode = false )

getCouponDetails() 공개 메소드

public getCouponDetails ( $couponCode )

getCustomerById() 공개 메소드

public getCustomerById ( $customerId )

getCustomerSubscriptionByCId() 공개 메소드

public getCustomerSubscriptionByCId ( $client_id ) : ChargifySubscription
리턴 ChargifySubscription

getStatements() 공개 메소드

public getStatements ( $subscriptionId )

getSubscription() 공개 메소드

public getSubscription ( $subscriptionId )

getSubscriptionByCustomerId() 공개 메소드

public getSubscriptionByCustomerId ( $clientId )

getSubscriptionComponents() 공개 메소드

public getSubscriptionComponents ( $subscriptionId )

reactivateSubscription() 공개 메소드

public reactivateSubscription ( $subscriptionId )

sendRequest() 보호된 메소드

protected sendRequest ( $uri, $method, $data = null )

setComponentValue() 공개 메소드

public setComponentValue ( $subscriptionId, $componentId, $value )

updateSubscription() 공개 메소드

public updateSubscription ( $subscriptionId, $ccNumber, $ccCvv, $ccExpMonth, $ccExpYear, $fName, $lName, $postalCode = false )

upgradeSubscription() 공개 메소드

public upgradeSubscription ( $subscriptionId, $package, $includeTrial = false )