- $searchRange = [];
- $searchRange[] = $this->createElement('radio', NULL, NULL, ts('Yes'), '1');
- $searchRange[] = $this->createElement('radio', NULL, NULL, ts('No'), '0');
-
- $this->addGroup(
- $searchRange,
- 'send_cancel_request',
- ts('Send cancellation request to %1 ?',
- [1 => $this->_paymentProcessorObj->getTitle()])
- );
+ $this->addRadio('send_cancel_request', ts('Send cancellation request to %1 ?', [1 => $this->_paymentProcessorObj->getTitle()]), [ts('No'), ts('Yes')]);