CRM_Core_Payment_AuthorizeNetIPN
in package
Tags
Table of Contents
Properties
- $_inputParameters : array<string|int, mixed>
- Input parameters from payment processor. Store these so that the code does not need to keep retrieving from the http request
- $contributionStatus : string
- $transactionID : string
Methods
- __construct() : mixed
- Constructor function.
- getInput() : array<string|int, mixed>
- Get the input from passed in fields.
- main() : mixed
- Main IPN processing function.
- notify() : mixed
- retrieve() : mixed
- getAmount() : string
- Get amount.
- getContributionID() : int
- Get the contribution ID to be updated.
- getContributionRecurID() : int
- Get the id of the recurring contribution.
- getContributionRecurObject() : CRM_Core_DAO|DB_Error|object
- Get the recurring contribution object.
- getPaymentProcessorID() : int
- Get the payment processor id.
- getRecurProcessorID() : string
- Get the processor_id for the recurring.
- getContributionRecur() : CRM_Contribute_BAO_ContributionRecur
- getContributionStatus() : string
- Get the relevant contribution status.
- isSuccess() : bool
- Was the transaction successful.
Properties
$_inputParameters
Input parameters from payment processor. Store these so that the code does not need to keep retrieving from the http request
protected
array<string|int, mixed>
$_inputParameters
= []
$contributionStatus
protected
string
$contributionStatus
$transactionID
protected
string
$transactionID
Methods
__construct()
Constructor function.
public
__construct(array<string|int, mixed> $inputData) : mixed
Parameters
- $inputData : array<string|int, mixed>
-
contents of HTTP REQUEST.
Tags
getInput()
Get the input from passed in fields.
public
getInput() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed>main()
Main IPN processing function.
public
main() : mixed
notify()
public
notify() : mixed
Tags
retrieve()
public
retrieve(string $name, string $type[, bool $abort = true ][, null $default = null ]) : mixed
Parameters
- $name : string
-
Parameter name.
- $type : string
-
Parameter type.
- $abort : bool = true
-
Abort if not present.
- $default : null = null
-
Default value.
Tags
getAmount()
Get amount.
protected
getAmount() : string
Tags
Return values
stringgetContributionID()
Get the contribution ID to be updated.
protected
getContributionID() : int
Tags
Return values
intgetContributionRecurID()
Get the id of the recurring contribution.
protected
getContributionRecurID() : int
Tags
Return values
intgetContributionRecurObject()
Get the recurring contribution object.
protected
getContributionRecurObject(string $processorID, int $contactID, int $contributionID) : CRM_Core_DAO|DB_Error|object
Parameters
- $processorID : string
- $contactID : int
- $contributionID : int
Tags
Return values
CRM_Core_DAO|DB_Error|objectgetPaymentProcessorID()
Get the payment processor id.
protected
getPaymentProcessorID() : int
Tags
Return values
intgetRecurProcessorID()
Get the processor_id for the recurring.
protected
getRecurProcessorID() : string
This is the value stored in civicrm_contribution_recur.processor_id, sometimes called subscription_id.
Tags
Return values
stringgetContributionRecur()
private
getContributionRecur() : CRM_Contribute_BAO_ContributionRecur
Tags
Return values
CRM_Contribute_BAO_ContributionRecurgetContributionStatus()
Get the relevant contribution status.
private
getContributionStatus() : string
Tags
Return values
string —$status
isSuccess()
Was the transaction successful.
private
isSuccess() : bool