PHP Class PayPal\Ipn\PPIPNMessage

Mostra file Open project: paypal/sdk-core-php Class Usage Examples

Public Methods

Method Description
__construct ( string $postData = '', $config = null )
getRawData ( ) : array Returns a hashmap of raw IPN data
getTransactionId ( ) : string Returns the transaction id for which this IPN was generated, if one is available
getTransactionType ( ) : string Returns the transaction type for which this IPN was generated
validate ( ) : boolean Validates a IPN message

Private Methods

Method Description
setEndpoint ( )

Method Details

__construct() public method

public __construct ( string $postData = '', $config = null )
$postData string OPTIONAL post data. If null, the class automatically reads incoming POST data from the input stream

getRawData() public method

Returns a hashmap of raw IPN data
public getRawData ( ) : array
return array

getTransactionId() public method

Returns the transaction id for which this IPN was generated, if one is available
public getTransactionId ( ) : string
return string

getTransactionType() public method

Returns the transaction type for which this IPN was generated
public getTransactionType ( ) : string
return string

validate() public method

Validates a IPN message
public validate ( ) : boolean
return boolean