class IpnValidation (View source)

Properties

protected $postData
protected $serverData
protected $credentials

Methods

__construct(array $postData, array $serverData, Credentials $credentials)

No description

checkRequiredData()

Checks $_POST data for required statuses https://www.coinpayments.net/merchant-tools-ipn

bool
checkOrderSuccess()

If $order_status is >100 or is 2, return true

bool
validate()

Validate the IPN request and payment.

array|mixed|null
getPostData(null $key = null)

No description

array|mixed|null
getServerData(null $key = null)

No description

setPostData(array $postData)

No description

setServerData(array $serverData)

No description

setCredentials(Credentials $credentials)

No description

Details

__construct(array $postData, array $serverData, Credentials $credentials)

Parameters

array $postData
array $serverData
Credentials $credentials

checkRequiredData()

Checks $_POST data for required statuses https://www.coinpayments.net/merchant-tools-ipn

Exceptions

ValidationException

bool checkOrderSuccess()

If $order_status is >100 or is 2, return true

Return Value

bool

Exceptions

OrderException

bool validate()

Validate the IPN request and payment.

Return Value

bool

Exceptions

Exception

array|mixed|null getPostData(null $key = null)

Parameters

null $key

Return Value

array|mixed|null

array|mixed|null getServerData(null $key = null)

Parameters

null $key

Return Value

array|mixed|null

setPostData(array $postData)

Parameters

array $postData

setServerData(array $serverData)

Parameters

array $serverData

setCredentials(Credentials $credentials)

Parameters

Credentials $credentials