Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [2016-08-31 15:45:22] main.ERROR: /usr/bin/php7.0 -f /var/www/html/magento/bin/magento setup:di:compile 2>&1
- Compilation was started.
- %message% 0/7 [>---------------------------] 0% 1 sec 42.0 MiB%message% 0/7 [>---------------------------] 0% 1 sec 42.0 MiBProxies code generation... 0/7 [>---------------------------] 0% 1$
- Proxies code generation... 1/7 [====>-----------------------] 14% 1 sec 46.0 MiB
- Repositories code generation... 1/7 [====>-----------------------] 14% 1 sec 46.0 MiBPHP Fatal error: Cannot declare interface MagentoPaymentModelMethodInterface, because the name is already $
- Fatal error: Cannot declare interface MagentoPaymentModelMethodInterface, because the name is already in use in /var/www/html/magento/vendor/magento/module-paypal/Model/MethodInterface.php on l$
- <?php
- /**
- * Copyright © 2016 Magento. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace MagentoPaymentModel;
- use MagentoFrameworkDataObject;
- use MagentoQuoteApiDataCartInterface;
- /**
- * Payment interface
- * @api
- */
- interface MethodInterface
- {
- /**
- * Retrieve payment method code
- *
- * @return string
- *
- */
- public function getCode();
- /**
- * Retrieve block type for method form generation
- *
- * @return string
- *
- * @deprecated
- */
- public function getFormBlockType();
- /**
- * Retrieve payment method title
- *
- * @return string
- *
- */
- public function getTitle();
- /**
- * Store id setter
- * @param int $storeId
- * @return void
- */
- public function setStore($storeId);
- /**
- * Store id getter
- * @return int
- */
- public function getStore();
- /**
- * Check order availability
- *
- * @return bool
- *
- */
- public function canOrder();
- /**
- * Check authorize availability
- *
- * @return bool
- *
- */
- public function canAuthorize();
- /**
- * Check capture availability
- *
- * @return bool
- *
- */
- public function canCapture();
- /**
- * Check partial capture availability
- *
- * @return bool
- *
- */
- public function canCapturePartial();
- /**
- * Check whether capture can be performed once and no further capture possible
- *
- * @return bool
- *
- */
- public function canCaptureOnce();
- /**
- * Check refund availability
- *
- * @return bool
- *
- */
- public function canRefund();
- /**
- * Check partial refund availability for invoice
- *
- * @return bool
- *
- */
- public function canRefundPartialPerInvoice();
- /**
- * Check void availability
- * @return bool
- *
- */
- public function canVoid();
- /**
- * Using internal pages for input payment data
- * Can be used in admin
- *
- * @return bool
- */
- public function canUseInternal();
- /**
- * Can be used in regular checkout
- *
- * @return bool
- */
- public function canUseCheckout();
- /**
- * Can be edit order (renew order)
- *
- * @return bool
- *
- */
- public function canEdit();
- /**
- * Check fetch transaction info availability
- *
- * @return bool
- *
- */
- public function canFetchTransactionInfo();
- /**
- * Fetch transaction info
- *
- * @param InfoInterface $payment
- * @param string $transactionId
- * @return array
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
- *
- */
- public function fetchTransactionInfo(InfoInterface $payment, $transactionId);
- /**
- * Retrieve payment system relation flag
- *
- * @return bool
- *
- */
- public function isGateway();
- /**
- * Retrieve payment method online/offline flag
- *
- * @return bool
- *
- */
- public function isOffline();
- /**
- * Flag if we need to run payment initialize while order place
- *
- * @return bool
- *
- */
- public function isInitializeNeeded();
- /**
- * To check billing country is allowed for the payment method
- *
- * @param string $country
- * @return bool
- */
- public function canUseForCountry($country);
- /**
- * Check method for processing with base currency
- *
- * @param string $currencyCode
- * @return bool
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
- */
- public function canUseForCurrency($currencyCode);
- /**
- * Retrieve block type for display method information
- *
- * @return string
- *
- * @deprecated
- */
- public function getInfoBlockType();
- /**
- * Retrieve payment information model object
- *
- * @return InfoInterface
- * @throws MagentoFrameworkExceptionLocalizedException
- *
- * @deprecated
- */
- public function getInfoInstance();
- /**
- * Retrieve payment information model object
- *
- * @param InfoInterface $info
- * @return void
- *
- * @deprecated
- */
- public function setInfoInstance(InfoInterface $info);
- /**
- * Validate payment method information object
- *
- * @return $this
- * @throws MagentoFrameworkExceptionLocalizedException
- *
- */
- public function validate();
- /**
- * Order payment abstract method
- *
- * @param InfoInterface $payment
- * @param float $amount
- * @return $this
- *
- */
- public function order(MagentoPaymentModelInfoInterface $payment, $amount);
- /**
- * Authorize payment abstract method
- *
- * @param InfoInterface $payment
- * @param float $amount
- * @return $this
- *
- */
- public function authorize(MagentoPaymentModelInfoInterface $payment, $amount);
- /**
- * Capture payment abstract method
- *
- * @param InfoInterface $payment
- * @param float $amount
- * @return $this
- *
- */
- public function capture(MagentoPaymentModelInfoInterface $payment, $amount);
- /**
- * Refund specified amount for payment
- *
- * @param InfoInterface $payment
- * @param float $amount
- * @return $this
- *
- */
- public function refund(MagentoPaymentModelInfoInterface $payment, $amount);
- /**
- * Cancel payment abstract method
- *
- * @param InfoInterface $payment
- * @return $this
- *
- */
- public function cancel(MagentoPaymentModelInfoInterface $payment);
- /**
- * Void payment abstract method
- *
- * @param InfoInterface $payment
- * @return $this
- *
- */
- public function void(MagentoPaymentModelInfoInterface $payment);
- /**
- * Whether this method can accept or deny payment
- * @return bool
- *
- */
- public function canReviewPayment();
- /**
- * Attempt to accept a payment that us under review
- *
- * @param InfoInterface $payment
- * @return false
- * @throws MagentoFrameworkExceptionLocalizedException
- *
- */
- public function acceptPayment(InfoInterface $payment);
- /**
- * Attempt to deny a payment that us under review
- *
- * @param InfoInterface $payment
- * @return false
- * @throws MagentoFrameworkExceptionLocalizedException
- *
- */
- public function denyPayment(InfoInterface $payment);
- /**
- * Retrieve information from payment configuration
- *
- * @param string $field
- * @param int|string|null|MagentoStoreModelStore $storeId
- *
- * @return mixed
- */
- public function getConfigData($field, $storeId = null);
- /**
- * Assign data to info model instance
- *
- * @param DataObject $data
- * @return $this
- *
- */
- public function assignData(DataObject $data);
- /**
- * Check whether payment method can be used
- *
- * @param CartInterface|null $quote
- * @return bool
- *
- */
- public function isAvailable(CartInterface $quote = null);
- /**
- * Is active
- *
- * @param int|null $storeId
- * @return bool
- *
- */
- public function isActive($storeId = null);
- /**
- * Method that will be executed instead of authorize or capture
- * if flag isInitializeNeeded set to true
- *
- * @param string $paymentAction
- * @param object $stateObject
- *
- * @return $this
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
- *
- */
- public function initialize($paymentAction, $stateObject);
- /**
- * Get config payment action url
- * Used to universalize payment actions when processing payment place
- *
- * @return string
- *
- */
- public function getConfigPaymentAction();
- }
- <?php
- /**
- * Copyright © 2016 Magento. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace MagentoPaymentModel;
- use MagentoFrameworkDataObject;
- use MagentoQuoteApiDataCartInterface;
- /**
- * Payment interface
- * @api
- */
- interface MethodInterface
- {
- /**
- * Retrieve payment method code
- *
- * @return string
- *
- */
- public function getCode();
- /**
- * Retrieve block type for method form generation
- *
- * @return string
- *
- * @deprecated
- */
- public function getFormBlockType();
- /**
- * Retrieve payment method title
- *
- * @return string
- *
- */
- public function getTitle();
- /**
- * Store id setter
- * @param int $storeId
- * @return void
- */
- public function setStore($storeId);
- /**
- * Store id getter
- * @return int
- */
- public function getStore();
- /**
- * Check order availability
- *
- * @return bool
- *
- */
- public function canOrder();
- /**
- * Check authorize availability
- *
- * @return bool
- *
- */
- public function canAuthorize();
- /**
- * Check capture availability
- *
- * @return bool
- *
- */
- public function canCapture();
- /**
- * Check partial capture availability
- *
- * @return bool
- *
- */
- public function canCapturePartial();
- /**
- * Check whether capture can be performed once and no further capture possible
- *
- * @return bool
- *
- */
- public function canCaptureOnce();
- /**
- * Check refund availability
- *
- * @return bool
- *
- */
- public function canRefund();
- /**
- * Check partial refund availability for invoice
- *
- * @return bool
- *
- */
- public function canRefundPartialPerInvoice();
- /**
- * Check void availability
- * @return bool
- *
- */
- public function canVoid();
- /**
- * Using internal pages for input payment data
- * Can be used in admin
- *
- * @return bool
- */
- public function canUseInternal();
- /**
- * Can be used in regular checkout
- *
- * @return bool
- */
- public function canUseCheckout();
- /**
- * Can be edit order (renew order)
- *
- * @return bool
- *
- */
- public function canEdit();
- /**
- * Check fetch transaction info availability
- *
- * @return bool
- *
- */
- public function canFetchTransactionInfo();
- /**
- * Fetch transaction info
- *
- * @param InfoInterface $payment
- * @param string $transactionId
- * @return array
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
- *
- */
- public function fetchTransactionInfo(InfoInterface $payment, $transactionId);
- /**
- * Retrieve payment system relation flag
- *
- * @return bool
- *
- */
- public function isGateway();
- /**
- * Retrieve payment method online/offline flag
- *
- * @return bool
- *
- */
- public function isOffline();
- /**
- * Flag if we need to run payment initialize while order place
- *
- * @return bool
- *
- */
- public function isInitializeNeeded();
- /**
- * To check billing country is allowed for the payment method
- *
- * @param string $country
- * @return bool
- */
- public function canUseForCountry($country);
- /**
- * Check method for processing with base currency
- *
- * @param string $currencyCode
- * @return bool
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
- */
- public function canUseForCurrency($currencyCode);
- /**
- * Retrieve block type for display method information
- *
- * @return string
- *
- * @deprecated
- */
- public function getInfoBlockType();
- /**
- * Retrieve payment information model object
- *
- * @return InfoInterface
- * @throws MagentoFrameworkExceptionLocalizedException
- *
- * @deprecated
- */
- public function getInfoInstance();
- /**
- * Retrieve payment information model object
- *
- * @param InfoInterface $info
- * @return void
- *
- * @deprecated
- */
- public function setInfoInstance(InfoInterface $info);
- /**
- * Validate payment method information object
- *
- * @return $this
- * @throws MagentoFrameworkExceptionLocalizedException
- *
- */
- public function validate();
- /**
- * Order payment abstract method
- *
- * @param InfoInterface $payment
- * @param float $amount
- * @return $this
- *
- */
- public function order(MagentoPaymentModelInfoInterface $payment, $amount);
- /**
- * Authorize payment abstract method
- *
- * @param InfoInterface $payment
- * @param float $amount
- * @return $this
- *
- */
- public function authorize(MagentoPaymentModelInfoInterface $payment, $amount);
- /**
- * Capture payment abstract method
- *
- * @param InfoInterface $payment
- * @param float $amount
- * @return $this
- *
- */
- public function capture(MagentoPaymentModelInfoInterface $payment, $amount);
- /**
- * Refund specified amount for payment
- *
- * @param InfoInterface $payment
- * @param float $amount
- * @return $this
- *
- */
- public function refund(MagentoPaymentModelInfoInterface $payment, $amount);
- /**
- * Cancel payment abstract method
- *
- * @param InfoInterface $payment
- * @return $this
- *
- */
- public function cancel(MagentoPaymentModelInfoInterface $payment);
- /**
- * Void payment abstract method
- *
- * @param InfoInterface $payment
- * @return $this
- *
- */
- public function void(MagentoPaymentModelInfoInterface $payment);
- /**
- * Whether this method can accept or deny payment
- * @return bool
- *
- */
- public function canReviewPayment();
- /**
- * Attempt to accept a payment that us under review
- *
- * @param InfoInterface $payment
- * @return false
- * @throws MagentoFrameworkExceptionLocalizedException
- *
- */
- public function acceptPayment(InfoInterface $payment);
- /**
- * Attempt to deny a payment that us under review
- *
- * @param InfoInterface $payment
- * @return false
- * @throws MagentoFrameworkExceptionLocalizedException
- *
- */
- public function denyPayment(InfoInterface $payment);
- /**
- * Retrieve information from payment configuration
- *
- * @param string $field
- * @param int|string|null|MagentoStoreModelStore $storeId
- *
- * @return mixed
- */
- public function getConfigData($field, $storeId = null);
- /**
- * Assign data to info model instance
- *
- * @param DataObject $data
- * @return $this
- *
- */
- public function assignData(DataObject $data);
- /**
- * Check whether payment method can be used
- *
- * @param CartInterface|null $quote
- * @return bool
- *
- */
- public function isAvailable(CartInterface $quote = null);
- /**
- * Is active
- *
- * @param int|null $storeId
- * @return bool
- *
- */
- public function isActive($storeId = null);
- /**
- * Method that will be executed instead of authorize or capture
- * if flag isInitializeNeeded set to true
- *
- * @param string $paymentAction
- * @param object $stateObject
- *
- * @return $this
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
- *
- */
- public function initialize($paymentAction, $stateObject);
- /**
- * Get config payment action url
- * Used to universalize payment actions when processing payment place
- *
- * @return string
- *
- */
- public function getConfigPaymentAction();
- }
Add Comment
Please, Sign In to add comment