$processor['object']->setBillingProfile($billing_profile_id);
$processor['object']->setBackOffice($isBackOffice);
- $processor['object']->setPaymentInstrumentID($paymentInstrumentID);
+ if (isset($paymentInstrumentID)) {
+ $processor['object']->setPaymentInstrumentID($paymentInstrumentID);
+ }
$paymentTypeName = self::getPaymentTypeName($processor);
$form->assign('paymentTypeName', $paymentTypeName);
$form->assign('paymentTypeLabel', self::getPaymentLabel($processor['object']));
return $month;
}
- return CRM_Utils_Array::value('m', $src['credit_card_exp_date']);
+ return $src['credit_card_exp_date']['m'] ?? NULL;
}
/**
* @return int
*/
public static function getCreditCardExpirationYear($src) {
- return CRM_Utils_Array::value('Y', $src['credit_card_exp_date']);
+ return $src['credit_card_exp_date']['Y'] ?? NULL;
}
/**