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
Get contribution statuses by entity e.g. contribution, membership or 'participant'
CRM-8254 / CRM-6907 - override default currency if applicable these lines exist to support a non-default currency on the form but are probably obsolete & meddling wth the defaultCurrency is not the right approach.
Get either the public title if set or the title of a contribution page for use in workflow message template.
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 255
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 268
static array
contributionChartMonthly(int $param)
Get the contribution details by month of the year.
at line 307
static array
contributionChartYearly()
Get the contribution details by year.
at line 347
static
createCMSUser(array $params, int $contactID, $mail)
at line 370
static bool
_fillCommonParams(array $params, string $type = 'paypal')
at line 441
static mixed
getFirstLastDetails(int $contactID)
at line 502
static array
calculateTaxAmount(float $amount, float $taxRate, bool $ugWeDoNotKnowIfItNeedsCleaning_Help = FALSE)
Calculate the tax amount based on given tax rate.
at line 526
static float
formatAmount(float $amount, int $decimals = 2)
Format monetary amount: round and return to desired decimal place CRM-20145
at line 540
static array
getContributionStatuses(string $usedFor = 'contribution', int $id = NULL)
Get contribution statuses by entity e.g. contribution, membership or 'participant'
at line 658
static
overrideDefaultCurrency(array $params)
CRM-8254 / CRM-6907 - override default currency if applicable these lines exist to support a non-default currency on the form but are probably obsolete & meddling wth the defaultCurrency is not the right approach.
...
at line 668
static string
getContributionPageTitle(int $contribution_page_id)
Get either the public title if set or the title of a contribution page for use in workflow message template.