$this->_processors, TRUE,
array('onChange' => "buildAutoRenew( null, this.value, '{$this->_mode}');")
);
- CRM_Core_Payment_Form::buildPaymentForm($this, $this->_paymentProcessor, FALSE, TRUE);
}
-
+ CRM_Core_Payment_Form::buildPaymentForm($this, $this->_paymentProcessor, FALSE, TRUE, $this->getDefaultPaymentInstrumentId());
// Build the form for auto renew. This is displayed when in credit card mode or update mode.
// The reason for showing it in update mode is not that clear.
if ($this->_mode || ($this->_action & CRM_Core_Action::UPDATE)) {
}
}
- $this->assignPaymentRelatedVariables();
-
if ($this->_id) {
$this->_memType = CRM_Core_DAO::getFieldValue('CRM_Member_DAO_Membership', $this->_id, 'membership_type_id');
$this->_membershipIDs[] = $this->_id;
*/
protected function ensurePriceParamsAreSet(&$formValues) {
foreach ($formValues as $key => $value) {
- if ((substr($key, 0, 6) == 'price_') && is_int(substr($key, 7))) {
+ if ((substr($key, 0, 6) == 'price_') && is_numeric(substr($key, 6))) {
return;
}
}