CRM_Core_Payment_PayPalIPN
class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN
Properties
static | $_now | from CRM_Core_Payment_BaseIPN | |
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. | from CRM_Core_Payment_BaseIPN |
protected bool | $_isFirstOrLastRecurringPayment | Only used by AuthorizeNetIPN. | from CRM_Core_Payment_BaseIPN |
static | $_paymentProcessor |
Methods
Constructor function.
Validate incoming data.
Load objects related to contribution.
Set contribution to failed.
Handled pending contribution status.
Process cancelled payment outcome.
No description
No description
No description
No description
No description
Main function.
No description
Gets PaymentProcessorID for PayPal
Details
at line 53
__construct(array $inputData)
Constructor function.
in CRM_Core_Payment_BaseIPN at line 74
setInputParameters(array $parameters)
Store input array on the class.
in CRM_Core_Payment_BaseIPN 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.
in CRM_Core_Payment_BaseIPN at line 162
bool|array
loadObjects(array $input, array $ids, array $objects, bool $required, int $paymentProcessorID, array $error_handling = NULL)
Load objects related to contribution.
in CRM_Core_Payment_BaseIPN at line 218
bool
failed(array $objects, object $transaction, array $input = [])
Set contribution to failed.
in CRM_Core_Payment_BaseIPN at line 283
bool
pending(array $objects, object $transaction)
Handled pending contribution status.
in CRM_Core_Payment_BaseIPN at line 300
bool
cancelled(array $objects, CRM_Core_Transaction $transaction, array $input = [])
Process cancelled payment outcome.
in CRM_Core_Payment_BaseIPN at line 367
bool
unhandled(array $objects, CRM_Core_Transaction $transaction)
Rollback unhandled outcomes.
in CRM_Core_Payment_BaseIPN at line 481
completeTransaction(array $input, array $ids, array $objects, CRM_Core_Transaction $transaction, bool $recur = FALSE)
deprecated
deprecated
in CRM_Core_Payment_BaseIPN at line 494
bool
getBillingID(array $ids)
Get site billing ID.
in CRM_Core_Payment_BaseIPN at line 529
array
sendMail(array $input, array $ids, array $objects, array $values, bool $recur = FALSE, bool $returnMessageText = FALSE)
deprecated
deprecated
at line 70
mixed
retrieve(string $name, string $type, bool $abort = TRUE)
at line 91
void
recur(array $input, array $ids, array $objects, bool $first)
at line 250
void
single(array $input, array $ids, array $objects, bool $recur = FALSE, bool $first = FALSE)
at line 310
main()
Main function.
at line 397
getInput(array $input, array $ids)
at line 449
int
getPayPalPaymentProcessorID(array $input, array $ids)
Gets PaymentProcessorID for PayPal