PHP Class ReceiptValidator\iTunes\Response

ファイルを表示 Open project: aporat/store-receipt-validator Class Usage Examples

Protected Properties

Property Type Description
$_bundle_id string bundle_id (app) belongs to the receipt
$_code integer Result Code
$_latest_receipt string latest receipt (needs for auto-renewable subscriptions)
$_latest_receipt_info array latest receipt info (needs for auto-renewable subscriptions)
$_purchases array purhcases info
$_receipt array receipt info

Public Methods

Method Description
__construct ( array $jsonResponse = null ) : Response Constructor
getBundleId ( ) : string Get the bundle id assoicated with the receipt
getLatestReceipt ( ) : string Get latest receipt
getLatestReceiptInfo ( ) : array Get latest receipt info
getPurchases ( ) : array Get purchases info
getReceipt ( ) : array Get receipt info
getResultCode ( ) : integer Get Result Code
isValid ( ) : boolean returns if the receipt is valid or not
parseJsonResponse ( string $jsonResponse ) : Response Parse JSON Response
setResultCode ( integer $code ) : Response Set Result Code

Method Details

__construct() public method

Constructor
public __construct ( array $jsonResponse = null ) : Response
$jsonResponse array
return Response

getBundleId() public method

Get the bundle id assoicated with the receipt
public getBundleId ( ) : string
return string

getLatestReceipt() public method

Get latest receipt
public getLatestReceipt ( ) : string
return string

getLatestReceiptInfo() public method

Get latest receipt info
public getLatestReceiptInfo ( ) : array
return array

getPurchases() public method

Get purchases info
public getPurchases ( ) : array
return array

getReceipt() public method

Get receipt info
public getReceipt ( ) : array
return array

getResultCode() public method

Get Result Code
public getResultCode ( ) : integer
return integer

isValid() public method

returns if the receipt is valid or not
public isValid ( ) : boolean
return boolean

parseJsonResponse() public method

Parse JSON Response
public parseJsonResponse ( string $jsonResponse ) : Response
$jsonResponse string
return Response

setResultCode() public method

Set Result Code
public setResultCode ( integer $code ) : Response
$code integer
return Response

Property Details

$_bundle_id protected_oe property

bundle_id (app) belongs to the receipt
protected string $_bundle_id
return string

$_code protected_oe property

Result Code
protected int $_code
return integer

$_latest_receipt protected_oe property

latest receipt (needs for auto-renewable subscriptions)
protected string $_latest_receipt
return string

$_latest_receipt_info protected_oe property

latest receipt info (needs for auto-renewable subscriptions)
protected array $_latest_receipt_info
return array

$_purchases protected_oe property

purhcases info
protected array $_purchases
return array

$_receipt protected_oe property

receipt info
protected array $_receipt
return array