PHP Class ReceiptValidator\iTunes\Response

Afficher le fichier Open project: aporat/store-receipt-validator Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 méthode

Constructor
public __construct ( array $jsonResponse = null ) : Response
$jsonResponse array
Résultat Response

getBundleId() public méthode

Get the bundle id assoicated with the receipt
public getBundleId ( ) : string
Résultat string

getLatestReceipt() public méthode

Get latest receipt
public getLatestReceipt ( ) : string
Résultat string

getLatestReceiptInfo() public méthode

Get latest receipt info
public getLatestReceiptInfo ( ) : array
Résultat array

getPurchases() public méthode

Get purchases info
public getPurchases ( ) : array
Résultat array

getReceipt() public méthode

Get receipt info
public getReceipt ( ) : array
Résultat array

getResultCode() public méthode

Get Result Code
public getResultCode ( ) : integer
Résultat integer

isValid() public méthode

returns if the receipt is valid or not
public isValid ( ) : boolean
Résultat boolean

parseJsonResponse() public méthode

Parse JSON Response
public parseJsonResponse ( string $jsonResponse ) : Response
$jsonResponse string
Résultat Response

setResultCode() public méthode

Set Result Code
public setResultCode ( integer $code ) : Response
$code integer
Résultat Response

Property Details

$_bundle_id protected_oe property

bundle_id (app) belongs to the receipt
protected string $_bundle_id
Résultat string

$_code protected_oe property

Result Code
protected int $_code
Résultat integer

$_latest_receipt protected_oe property

latest receipt (needs for auto-renewable subscriptions)
protected string $_latest_receipt
Résultat string

$_latest_receipt_info protected_oe property

latest receipt info (needs for auto-renewable subscriptions)
protected array $_latest_receipt_info
Résultat array

$_purchases protected_oe property

purhcases info
protected array $_purchases
Résultat array

$_receipt protected_oe property

receipt info
protected array $_receipt
Résultat array