How is a payment method's canReviewPayment() implemented and used?

Context: How is \Magento\Sales\Model\Order\Payment::canReviewPayment() implemented and used?

Declaration

Definition






Usage

Magento’s Order View block will check $order->canReviewPayment() which will look at the _canReviewPayment variable on the payment method, and if true, display two buttons on the Order View : “Accept Payment” and “Deny Payment”. When clicked, the two new Payment Method functions we just added above will be called as appropriate.



Branch 1

Branch 2

Branch 3

Branch 3.1

Branch 3.2

How does a payment review work?
How is \Magento\Sales\Model\Order\Payment::canReviewPayment() implemented and used?
How is an acceptance of a reviewed payment implemented?
How is a denial of a reviewed payment implementied?
How is a payment method's getConfigPaymentAction() used?
How is a payment method's initialize() used?
How is a payment method's isAvailable() used?
How is a payment method's assignData() implemented and used?
How is a payment method's getConfigData() used?
How is a payment method's denyPayment() used?
How is a payment method's acceptPayment() used?
How is a payment method's capture() used?
How is a payment method's canUseForCurrency() used?
How is a payment method's fetchTransactionInfo() used?
How is a payment method's canEdit() used?
How is a payment method's canRefund() used?
How is a payment method's canVoid() used?
How is a payment method's canCapturePartial() used?
How is a payment method's canFetchTransactionInfo() used?
How is a payment method's canUseCheckout() used?
How is a payment method's canUseInternal() used?
How is a payment method's isGateway() used?
How is a payment method's isInitializeNeeded() used?
How is a payment method's setStore() used?
How is a payment method's order() used?
How is a payment method's setInfoInstance() used?
How is a payment method's getStore() used?
How is a payment method's getTitle() used?
How is a payment method's getInfoBlockType() used?
How is a payment method's canUseForCountry() used?
How is a payment method's isOffline() used?
How is a payment method's canRefundPartialPerInvoice() used?
How is a payment method's canCapture() implemented and used?
How is a payment method's getFormBlockType() used?
How is a payment method's getInfoInstance() used?
How is a payment method's validate() used?
How is a payment method's authorize() used?
How is a payment method's refund() used?
How is a payment method's cancel() used?
How is a payment method's void() used?

See also: