Jelajahi Sumber

Ticket #4090 - Payments: Add support for multi-currency.

AntonLV 4 tahun lalu
induk
melakukan
74d13b8280
1 mengubah file dengan 37 tambahan dan 0 penghapusan
  1. 37 0
      modules/boonex/payment/classes/BxPaymentProviderGeneric.php

+ 37 - 0
modules/boonex/payment/classes/BxPaymentProviderGeneric.php

@@ -0,0 +1,37 @@
+<?php defined('BX_DOL') or die('hack attempt');
+/**
+ * Copyright (c) UNA, Inc - https://una.io
+ * MIT License - https://opensource.org/licenses/MIT
+ *
+ * @defgroup    Payment Payment
+ * @ingroup     UnaModules
+ *
+ * @{
+ */
+
+class BxPaymentProviderGeneric extends BxBaseModPaymentProvider implements iBxBaseModPaymentProvider
+{
+    public function __construct($aConfig)
+    {
+    	$this->MODULE = 'bx_payment';
+
+        parent::__construct($aConfig);
+    }
+
+    public function initializeCheckout($iPendingId, $aCartInfo)
+    {
+        return $this->_sLangsPrefix . 'gc_err_not_available';
+    }
+
+    public function finalizeCheckout(&$aData)
+    {
+        return ['code' => 1, 'message' => $this->_sLangsPrefix . 'gc_err_not_available'];
+    }
+
+    public function finalizedCheckout()
+    {
+        return ['code' => 1, 'message' => $this->_sLangsPrefix . 'gc_err_not_available'];
+    }
+}
+
+/** @} */