$contribButton = ts('Continue');
$this->assign('button', ts('Continue'));
}
+ elseif (!empty($this->_ccid)) {
+ $contribButton = ts('Make Payment');
+ $this->assign('button', ts('Make Payment'));
+ }
else {
$contribButton = ts('Make Contribution');
$this->assign('button', ts('Make Contribution'));
$this->_defaults = array_merge($this->_defaults, $billingDefaults);
}
if (!empty($this->_ccid) && !empty($this->_pendingAmount)) {
- $this->_defaults['total_amount'] = $this->_pendingAmount;
+ $this->_defaults['total_amount'] = CRM_Utils_Money::format($this->_pendingAmount, NULL, '%a');
}
/*
if (empty($this->_values['is_confirm_enabled'])) {
$submitButton['js'] = array('onclick' => "return submitOnce(this,'" . $this->_name . "','" . ts('Processing') . "');");
}
+ //change button name for updating contribution
+ if (!empty($this->_ccid)) {
+ $submitButton['name'] = ts('Confirm Payment');
+ }
$this->addButtons(array($submitButton));
}
if (empty($priceSet)) {
$this->waitForElementPresent("total_amount");
- $this->assertTrue($this->isElementPresent("xpath=//input[@id='total_amount'][@readonly=1][@value=100]"));
+ $this->assertTrue($this->isElementPresent("xpath=//input[@id='total_amount'][@readonly=1][@value='100.00']"));
}
else {
$this->assertElementContainsText("xpath=//div[@class='header-dark']", "Contribution Information");