BxPaymentProviderGeneric.php 900 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup Payment Payment
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxPaymentProviderGeneric extends BxBaseModPaymentProvider implements iBxBaseModPaymentProvider
  12. {
  13. public function __construct($aConfig)
  14. {
  15. $this->MODULE = 'bx_payment';
  16. parent::__construct($aConfig);
  17. }
  18. public function initializeCheckout($iPendingId, $aCartInfo)
  19. {
  20. return $this->_sLangsPrefix . 'gc_err_not_available';
  21. }
  22. public function finalizeCheckout(&$aData)
  23. {
  24. return ['code' => 1, 'message' => $this->_sLangsPrefix . 'gc_err_not_available'];
  25. }
  26. public function finalizedCheckout()
  27. {
  28. return ['code' => 1, 'message' => $this->_sLangsPrefix . 'gc_err_not_available'];
  29. }
  30. }
  31. /** @} */