Esempio n. 1
0
 /**
  * Custom getter for payment configuration
  *
  * @param string $field   i.e merchant_id, server
  *
  * @return mixed
  * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  */
 public function getConfigData($field)
 {
     return $this->_paymentMethod->getConfigData($field);
 }
Esempio n. 2
0
 public function _prepareLayout()
 {
     $this->setMessage('Redirecting to Payfast')->setId('payfast_checkout')->setName('payfast_checkout')->setFormMethod('POST')->setFormAction($this->_paymentMethod->getPayFastUrl())->setFormData($this->_paymentMethod->getStandardCheckoutFormFields())->setSubmitForm('<script type="text/javascript">document.getElementById( "payfast_checkout" ).submit();</script>');
     return parent::_prepareLayout();
     // TODO: Change the autogenerated stub
 }