PHP Class PayWithAmazon\ResponseParser

Inheritance: implements paywithamazon\ResponseInterface
Mostrar archivo Open project: amzn/login-and-pay-with-amazon-sdk-php

Public Properties

Property Type Description
$response

Public Methods

Method Description
__construct ( $response = null )
getBillingAgreementDetailsStatus ( $response ) * Get the status of the BillingAgreement
getOrderReferenceDetailsStatus ( $response ) * Get the status of the Order Reference ID
toArray ( ) * toArray - converts XML into associative array
toJson ( ) * toJson - converts XML into Json
toXml ( ) * Returns the XML portion of the response

Private Methods

Method Description
getStatus ( $type, $path, $response )
simpleXmlObject ( )

Method Details

__construct() public method

public __construct ( $response = null )

getBillingAgreementDetailsStatus() public method

* Get the status of the BillingAgreement
public getBillingAgreementDetailsStatus ( $response )

getOrderReferenceDetailsStatus() public method

* Get the status of the Order Reference ID
public getOrderReferenceDetailsStatus ( $response )

toArray() public method

* toArray - converts XML into associative array
public toArray ( )

toJson() public method

* toJson - converts XML into Json
public toJson ( )

toXml() public method

* Returns the XML portion of the response
public toXml ( )

Property Details

$response public_oe property

public $response