CRM_Contribute_BAO_Contribution_Utils
class CRM_Contribute_BAO_Contribution_Utils
Methods
Process payment after confirmation.
Get the contribution details by month of the year.
Get the contribution details by year.
No description
No description
No description
Calculate the tax amount based on given tax rate.
Format monetary amount: round and return to desired decimal place CRM-20145
Details
at line 56
static array
processConfirm(CRM_Core_Form $form, array $paymentParams, int $contactID, int $financialTypeID, bool $isTest, bool $isRecur)
Process payment after confirmation.
at line 234
static protected bool
isPaymentTransaction(CRM_Core_Form $form)
Is a payment being made.
Note that setting is_monetary on the form is somewhat legacy and the behaviour around this setting is confusing. It would be preferable to look for the amount only (assuming this cannot refer to payment in goats or other non-monetary currency
at line 247
static array
contributionChartMonthly(int $param)
Get the contribution details by month of the year.
at line 286
static array
contributionChartYearly()
Get the contribution details by year.
at line 326
static
createCMSUser(array $params, int $contactID, $mail)
at line 349
static bool
_fillCommonParams(array $params, string $type = 'paypal')
at line 420
static mixed
getFirstLastDetails(int $contactID)
at line 476
static array
calculateTaxAmount(float $amount, float $taxRate)
Calculate the tax amount based on given tax rate.
at line 496
static float
formatAmount(float $amount, int $decimals = 2)
Format monetary amount: round and return to desired decimal place CRM-20145