Documentation

CRM_Core_Payment_AuthorizeNetIPN
in package

Tags
copyright

CiviCRM LLC https://civicrm.org/licensing

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 = []

Methods

__construct()

Constructor function.

public __construct(array<string|int, mixed> $inputData) : mixed
Parameters
$inputData : array<string|int, mixed>

contents of HTTP REQUEST.

Tags
throws
CRM_Core_Exception

getInput()

Get the input from passed in fields.

public getInput() : array<string|int, mixed>
Tags
throws
CRM_Core_Exception
Return values
array<string|int, mixed>

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
throws
CRM_Core_Exception

getContributionRecurObject()

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
throws
CRM_Core_Exception
Return values
CRM_Core_DAO|DB_Error|object

getRecurProcessorID()

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
throws
CRM_Core_Exception
Return values
string

getContributionStatus()

Get the relevant contribution status.

private getContributionStatus() : string
Tags
throws
CRM_Core_Exception
Return values
string

$status


        
On this page

Search results