* pattern and cache the instance in this variable
*
* @var object
- * @static
*/
static private $_singleton = NULL;
foreach (array(
'membership',
'related_contact',
- 'onbehalf_dupe_alert'
+ 'onbehalf_dupe_alert',
) as $fld) {
if (!is_numeric($ids[$fld])) {
unset($ids[$fld]);
* @param $paymentProcessor
*
* @return object
- * @static
*/
public static function &singleton($mode, $component, &$paymentProcessor) {
if (self::$_singleton === NULL) {
* @internal param \xml $xml_response response send by google in xml format
* @return array
* context of this call (test, module, payment processor id)
- * @static
*/
public function getContext($privateData, $orderNo, $root, $response, $serial) {
$contributionID = CRM_Utils_Array::value('contributionID', $privateData);
$ids['event'] = $privateData['eventID'];
}
else {
- list($ids['event'], $ids['participant']) =
- explode(CRM_Core_DAO::VALUE_SEPARATOR, $contribution->trxn_id);
+ list($ids['event'], $ids['participant']) = explode(CRM_Core_DAO::VALUE_SEPARATOR, $contribution->trxn_id);
}
}
case "merchant-calculation-callback":
break;
- case "new-order-notification": {
+ case "new-order-notification":
$response->SendAck($serial, FALSE);
$ipn->newOrderNotify($data[$root], $privateData, $module);
break;
- }
- case "order-state-change-notification": {
+ case "order-state-change-notification":
$response->SendAck($serial, FALSE);
$new_financial_state = $data[$root]['new-financial-order-state']['VALUE'];
$new_fulfillment_order = $data[$root]['new-fulfillment-order-state']['VALUE'];
break;
}
break;
- }
- case "authorization-amount-notification": {
+ case "authorization-amount-notification":
$response->SendAck($serial, FALSE);
$new_financial_state = $data[$root]['order-summary']['financial-order-state']['VALUE'];
$new_fulfillment_order = $data[$root]['order-summary']['fulfillment-order-state']['VALUE'];
break;
}
break;
- }
case "charge-amount-notification":
case "chargeback-amount-notification":