Source of file ChequeGateway.php
Size: 0,944 Bytes - Last Modified: 2021-12-24T06:48:09+00:00
/var/www/docs.ssmods.com/process/src/code/ChequeGateway.php
1234567891011121314151617181920212223242526272829303132333435363738394041 | <?php class ChequeGateway extends PaymentGateway_MerchantHosted { protected $supportedCurrencies = array( 'USD' => 'United States Dollar', 'GBP' => 'Great British Pound', 'NZD' => 'New Zealand Dollar' ); public function validate($data) { $validationResult = $this->getValidationResult(); if (! isset($data['Amount'])) { $validationResult->error('Payment amount not set'); } else if (empty($data['Amount'])) { $validationResult->error('Payment amount cannot be null'); } $this->validationResult = $validationResult; return $validationResult; } public function process($data) { return new PaymentGateway_Success(); } public function getSupportedCurrencies() { $config = $this->getConfig(); if (isset($config['supported_currencies'])) { $this->supportedCurrencies = $config['supported_currencies']; } return $this->supportedCurrencies; } } |