# IpnValidation

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

###
at line 14
`__construct(array $postData, array $serverData, Credentials $credentials)`

#### Parameters

array | $postData |
array | $serverData |
Credentials | $credentials |

###
at line 27
`checkRequiredData()`

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

#### Exceptions

ValidationException |

###
at line 44
`bool checkOrderSuccess()`

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

#### Return Value

bool |

#### Exceptions

OrderException |

###
at line 61
`bool validate()`

Validate the IPN request and payment.

#### Return Value

bool |

#### Exceptions

Exception |

###
at line 93
`array|mixed|null getPostData(null $key = null)`

#### Parameters

null | $key |

#### Return Value

array|mixed|null |

###
at line 106
`array|mixed|null getServerData(null $key = null)`

#### Parameters

null | $key |

#### Return Value

array|mixed|null |

###
at line 117
`setPostData(array $postData)`

#### Parameters

array | $postData |

###
at line 125
`setServerData(array $serverData)`

#### Parameters

array | $serverData |

###
at line 133
`setCredentials(Credentials $credentials)`

#### Parameters

Credentials | $credentials |