コード例 #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);
 }
コード例 #2
0
ファイル: Request.php プロジェクト: PayFast/mod-magento_2
 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
 }