CRM_Core_Payment_BaseIPN
class CRM_Core_Payment_BaseIPN
Class CRM_Core_Payment_BaseIPN.
Properties
static | $_now | ||
protected array | $_inputParameters | Input parameters from payment processor. Store these so that the code does not need to keep retrieving from the http request | |
protected bool | $_isRecurring | Only used by AuthorizeNetIPN. | |
protected bool | $_isFirstOrLastRecurringPayment | Only used by AuthorizeNetIPN. |
Methods
Constructor.
Store input array on the class.
Validate incoming data.
Load objects related to contribution.
Set contribution to failed.
Handled pending contribution status.
Process cancelled payment outcome.
No description
Get site billing ID.
No description
Details
at line 63
__construct()
Constructor.
at line 74
setInputParameters(array $parameters)
Store input array on the class.
at line 104
bool
validateData(array $input, array $ids, array $objects, bool $required = TRUE, int $paymentProcessorID = NULL)
Validate incoming data.
This function is intended to ensure that incoming data matches It provides a form of pseudo-authentication - by checking the calling fn already knows the correct contact id & contribution id (this can be problematic when that has changed in the meantime for transactions that are delayed & contacts are merged in-between. e.g Paypal allows you to resend Instant Payment Notifications if you, for example, moved site and didn't update your IPN URL.
at line 154
bool|array
loadObjects(array $input, array $ids, array $objects, bool $required, int $paymentProcessorID, array $error_handling = NULL)
Load objects related to contribution.
at line 209
bool
failed(array $objects, object $transaction, array $input = array())
Set contribution to failed.
at line 291
bool
pending(array $objects, object $transaction)
Handled pending contribution status.
at line 307
bool
cancelled(array $objects, CRM_Core_Transaction $transaction, array $input = array())
Process cancelled payment outcome.
at line 387
bool
unhandled(array $objects, CRM_Core_Transaction $transaction)
Rollback unhandled outcomes.
at line 449
completeTransaction(array $input, array $ids, array $objects, CRM_Core_Transaction $transaction, bool $recur = FALSE)
deprecated
deprecated
at line 462
bool
getBillingID(array $ids)
Get site billing ID.
at line 495
array
sendMail(array $input, array $ids, array $objects, array $values, bool $recur = FALSE, bool $returnMessageText = FALSE)
deprecated
deprecated