PaymentConfig.php 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Name: 芸众商城系统
  5. * Author: 广州市芸众信息科技有限公司
  6. * Profile: 广州市芸众信息科技有限公司位于国际商贸中心的广州,专注于移动电子商务生态系统打造,拥有芸众社交电商系统、区块链数字资产管理系统、供应链管理系统、电子合同等产品/服务。官网 :www.yunzmall.com www.yunzshop.com
  7. * Date: 2021/8/27
  8. * Time: 16:59
  9. */
  10. namespace app\common\payment;
  11. use app\common\payment\method\alipay\AlipayAppPayment;
  12. use app\common\payment\method\alipay\AlipayFacePayment;
  13. use app\common\payment\method\alipay\AlipayJsapiPayment;
  14. use app\common\payment\method\alipay\AlipayPayment;
  15. use app\common\payment\method\alipay\AlipayScanPayment;
  16. use app\common\payment\method\converge\ConvergeAlipayCardPayment;
  17. use app\common\payment\method\converge\ConvergeAlipayH5Payment;
  18. use app\common\payment\method\converge\ConvergeAlipayPayment;
  19. use app\common\payment\method\converge\ConvergeQuickPayment;
  20. use app\common\payment\method\converge\ConvergeSeparateAlipayPayment;
  21. use app\common\payment\method\converge\ConvergeSeparatePayment;
  22. use app\common\payment\method\converge\ConvergeWechatCardPayment;
  23. use app\common\payment\method\converge\ConvergeUnionPayPayment;
  24. use app\common\payment\method\converge\ConvergeWechatPayment;
  25. use app\common\payment\method\other\AnotherPayment;
  26. use app\common\payment\method\other\AuthPayPayment;
  27. use app\common\payment\method\other\BalancePayment;
  28. use app\common\payment\method\other\CashPayment;
  29. use app\common\payment\method\other\CODPayment;
  30. use app\common\payment\method\other\ConfirmPayment;
  31. use app\common\payment\method\other\DcmScanPayment;
  32. use app\common\payment\method\other\DianBangScanPayment;
  33. use app\common\payment\method\other\EplusAliPayPayment;
  34. use app\common\payment\method\other\EplusMiniPayPayment;
  35. use app\common\payment\method\other\EplusWechatPayPayment;
  36. use app\common\payment\method\other\HkScanAlipayPayment;
  37. use app\common\payment\method\other\HkScanPayment;
  38. use app\common\payment\method\other\JinepayPayment;
  39. use app\common\payment\method\other\JueQiPayment;
  40. use app\common\payment\method\other\LaKaLaAlipayPayment;
  41. use app\common\payment\method\other\LaKaLaWechatPayment;
  42. use app\common\payment\method\other\LeshuaAlipayPayment;
  43. use app\common\payment\method\other\LeshuaPosPayment;
  44. use app\common\payment\method\other\LeshuaWechatPayment;
  45. use app\common\payment\method\other\LSPPayment;
  46. use app\common\payment\method\other\LSPWalletPayment;
  47. use app\common\payment\method\other\MemberCardPayment;
  48. use app\common\payment\method\other\ParentPayment;
  49. use app\common\payment\method\other\PayPalPayment;
  50. use app\common\payment\method\other\RemittancePayment;
  51. use app\common\payment\method\other\SandpayAlipayPayment;
  52. use app\common\payment\method\other\SandpayWechatPayment;
  53. use app\common\payment\method\other\SilverPointPayAlipayPayment;
  54. use app\common\payment\method\other\SilverPointPayUnionPayPayment;
  55. use app\common\payment\method\other\SilverPointPayWechatPayment;
  56. use app\common\payment\method\other\StoreBalancePayment;
  57. use app\common\payment\method\other\StorePayment;
  58. use app\common\payment\method\other\ThirdPartyMiniPayment;
  59. use app\common\payment\method\other\TouTiaoAlipayPayment;
  60. use app\common\payment\method\other\TouTiaoWechatPayment;
  61. use app\common\payment\method\other\XfAlipayPayment;
  62. use app\common\payment\method\other\XfWechatPayment;
  63. use app\common\payment\method\other\YopAlipayPayment;
  64. use app\common\payment\method\other\YopWechatPayment;
  65. use app\common\payment\method\wechat\WechatAppPayment;
  66. use app\common\payment\method\wechat\WechatCpsAppPayment;
  67. use app\common\payment\method\wechat\WechatFacePayment;
  68. use app\common\payment\method\wechat\WechatH5Payment;
  69. use app\common\payment\method\wechat\WechatJsapiPayment;
  70. use app\common\payment\method\wechat\WechatMicroPayment;
  71. use app\common\payment\method\wechat\WechatMinPayment;
  72. use app\common\payment\method\wechat\WechatNativePayment;
  73. use app\common\payment\method\wechat\WechatPayment;
  74. use app\common\payment\method\wechat\WechatScanPayment;
  75. use app\frontend\modules\order\payment\types\OrderPaymentTypes;
  76. use app\common\payment\method\other\CodeSciencePayYuPayment;
  77. class PaymentConfig
  78. {
  79. public static $orderPaymentTypes = [];
  80. public static function get()
  81. {
  82. return [
  83. AlipayAppPayment::class,
  84. AlipayFacePayment::class,
  85. AlipayJsapiPayment::class,
  86. AlipayPayment::class,
  87. AlipayScanPayment::class,
  88. ConvergeAlipayPayment::class,
  89. ConvergeQuickPayment::class,
  90. ConvergeSeparateAlipayPayment::class,
  91. ConvergeSeparatePayment::class,
  92. ConvergeWechatPayment::class,
  93. ConvergeAlipayCardPayment::class,
  94. ConvergeWechatCardPayment::class,
  95. ConvergeUnionPayPayment::class,
  96. ConvergeAlipayH5Payment::class,
  97. WechatAppPayment::class,
  98. WechatCpsAppPayment::class,
  99. WechatFacePayment::class,
  100. WechatH5Payment::class,
  101. WechatJsapiPayment::class,
  102. WechatMinPayment::class,
  103. WechatNativePayment::class,
  104. WechatPayment::class,
  105. WechatScanPayment::class,
  106. WechatMicroPayment::class,
  107. AnotherPayment::class,
  108. BalancePayment::class,
  109. CashPayment::class,
  110. CODPayment::class,
  111. ConfirmPayment::class,
  112. DcmScanPayment::class,
  113. DianBangScanPayment::class,
  114. HkScanAlipayPayment::class,
  115. HkScanPayment::class,
  116. JueQiPayment::class,
  117. MemberCardPayment::class,
  118. PayPalPayment::class,
  119. ParentPayment::class,
  120. RemittancePayment::class,
  121. StorePayment::class,
  122. TouTiaoAlipayPayment::class,
  123. TouTiaoWechatPayment::class,
  124. YopAlipayPayment::class,
  125. YopWechatPayment::class,
  126. StoreBalancePayment::class,
  127. XfAlipayPayment::class,
  128. XfWechatPayment::class,
  129. SandpayAlipayPayment::class,
  130. SandpayWechatPayment::class,
  131. LaKaLaWechatPayment::class,
  132. LaKaLaAlipayPayment::class,
  133. LeshuaAlipayPayment::class,
  134. LeshuaWechatPayment::class,
  135. LeshuaPosPayment::class,
  136. LSPPayment::class,
  137. SilverPointPayAlipayPayment::class,
  138. SilverPointPayUnionPayPayment::class,
  139. SilverPointPayWechatPayment::class,
  140. CodeSciencePayYuPayment::class,
  141. EplusWechatPayPayment::class,
  142. EplusMiniPayPayment::class,
  143. EplusAliPayPayment::class,
  144. LSPWalletPayment::class,
  145. JinepayPayment::class,
  146. AuthPayPayment::class,
  147. ThirdPartyMiniPayment::class,
  148. ];
  149. }
  150. public static function getOrderPayment($order_plugin_id)
  151. {
  152. if (app()->bound('OrderPaymentTypes')) {
  153. return app('OrderPaymentTypes');
  154. }
  155. return static::$orderPaymentTypes[$order_plugin_id]?:OrderPaymentTypes::class;
  156. }
  157. public static function attachOrderPayment($order_plugin_id,$order_payment_types)
  158. {
  159. static::$orderPaymentTypes[$order_plugin_id] = $order_payment_types;
  160. }
  161. }