Banktransfer.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\OfflinePayments\Model;
  7. /**
  8. * Bank Transfer payment method model
  9. *
  10. * @method \Magento\Quote\Api\Data\PaymentMethodExtensionInterface getExtensionAttributes()
  11. *
  12. * @api
  13. * @since 100.0.2
  14. */
  15. class Banktransfer extends \Magento\Payment\Model\Method\AbstractMethod
  16. {
  17. const PAYMENT_METHOD_BANKTRANSFER_CODE = 'banktransfer';
  18. /**
  19. * Payment method code
  20. *
  21. * @var string
  22. */
  23. protected $_code = self::PAYMENT_METHOD_BANKTRANSFER_CODE;
  24. /**
  25. * Bank Transfer payment block paths
  26. *
  27. * @var string
  28. */
  29. protected $_formBlockType = \Magento\OfflinePayments\Block\Form\Banktransfer::class;
  30. /**
  31. * Instructions block path
  32. *
  33. * @var string
  34. */
  35. protected $_infoBlockType = \Magento\Payment\Block\Info\Instructions::class;
  36. /**
  37. * Availability option
  38. *
  39. * @var bool
  40. */
  41. protected $_isOffline = true;
  42. /**
  43. * Get instructions text from config
  44. *
  45. * @return string
  46. */
  47. public function getInstructions()
  48. {
  49. return trim($this->getConfigData('instructions'));
  50. }
  51. }