CiviContributeProcessor
in package
Tags
Table of Contents
Properties
- $_csvParamsMapper : array<string|int, mixed>
- Note: if csv header is not present in the mapper, header itself is considered as a civicrm field.
- $_paypalParamsMapper : mixed
Methods
- _fillCommonParams() : bool
- csv() : mixed
- formatAPIParams() : array<string|int, mixed>
- paypal() : mixed
- process() : mixed
- processAPIContribution() : bool
Properties
$_csvParamsMapper
Note: if csv header is not present in the mapper, header itself is considered as a civicrm field.
public
static array<string|int, mixed>
$_csvParamsMapper
= array('contact' => array('first_name' => 'first_name', 'last_name' => 'last_name', 'middle_name' => 'middle_name', 'email' => 'email'), 'location' => array('street_address' => 'street_address', 'supplemental_address_1' => 'supplemental_address_1', 'city' => 'city', 'postal_code' => 'postal_code', 'country' => 'country'), 'transaction' => array('total_amount' => 'total_amount', 'trxn_id' => 'trxn_id', 'currency' => 'currency', 'source' => 'source', 'receive_date' => 'receive_date', 'note' => 'note', 'is_test' => 'is_test'))
category => array(csv_header => civicrm_field);
$_paypalParamsMapper
public
static mixed
$_paypalParamsMapper
= array(
//category => array(paypal_param => civicrm_field);
'contact' => array('salutation' => 'prefix_id', 'firstname' => 'first_name', 'lastname' => 'last_name', 'middlename' => 'middle_name', 'suffix' => 'suffix_id', 'email' => 'email'),
'location' => array('shiptoname' => 'address_name', 'shiptostreet' => 'street_address', 'shiptostreet2' => 'supplemental_address_1', 'shiptocity' => 'city', 'shiptostate' => 'state_province', 'shiptozip' => 'postal_code', 'countrycode' => 'country'),
'transaction' => array('amt' => 'total_amount', 'feeamt' => 'fee_amount', 'transactionid' => 'trxn_id', 'currencycode' => 'currency', 'l_name0' => 'source', 'ordertime' => 'receive_date', 'note' => 'note', 'custom' => 'note', 'l_number0' => 'note', 'is_test' => 'is_test', 'transactiontype' => 'trxn_type', 'recurrences' => 'installments', 'l_amt2' => 'amount', 'l_period2' => 'lol', 'invnum' => 'invoice_id', 'subscriptiondate' => 'start_date', 'subscriptionid' => 'processor_id', 'timestamp' => 'modified_date'),
)
Methods
_fillCommonParams()
public
static _fillCommonParams(array<string|int, mixed> &$params[, string $type = 'paypal' ]) : bool
Parameters
- $params : array<string|int, mixed>
- $type : string = 'paypal'
Return values
boolcsv()
public
static csv() : mixed
formatAPIParams()
public
static formatAPIParams(array<string|int, mixed> $apiParams, mixed $mapper[, string $type = 'paypal' ][, bool $category = TRUE ]) : array<string|int, mixed>
Parameters
- $apiParams : array<string|int, mixed>
- $mapper : mixed
- $type : string = 'paypal'
- $category : bool = TRUE
Return values
array<string|int, mixed>paypal()
public
static paypal(mixed $paymentProcessor, mixed $paymentMode, mixed $start, mixed $end) : mixed
Parameters
- $paymentProcessor : mixed
- $paymentMode : mixed
- $start : mixed
- $end : mixed
process()
public
static process() : mixed
processAPIContribution()
public
static processAPIContribution(array<string|int, mixed> $params) : bool
function.
This function has probably been defunct for quite a long time.
Parameters
- $params : array<string|int, mixed>